style(".greentext { color: green; }");
}
public function onQvitterEndShowHeadElements(Action $action)
{
$this->onEndShowStyles($action);
}
function onStartNoticeSave(&$notice)
{
$sepnotice = preg_split("/
\r?\n*/", $notice->rendered, -1);
foreach($sepnotice as &$sep)
{
if(0 === strpos($sep, '>'))
{
$sep = "" . $sep . "";
}
}
$notice->rendered = implode("
" . PHP_EOL, $sepnotice);
}
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'GreenText',
'version' => self::VERSION,
'author' => 'MoonMan',
'homepage' => '',
'description' =>
_m('Starting line with ">" makes line green.'));
return true;
}
}