\s*/";
public function onEndShowStyles(Action $action)
{
$action->style(".greentext { color: green; }");
}
public function onQvitterEndShowHeadElements(Action $action)
{
$this->onEndShowStyles($action);
}
function onStartNoticeSave(&$notice)
{
$sepnotice = preg_split(self::LINE_SEP, $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' => 'https://gitgud.io/ShitposterClub/GSGreenText/',
'description' =>
_m('Starting line with ">" makes line green.'));
return true;
}
}