function syntaxhighlighter_filter_tips in Syntax Highlighter 6.2
Same name and namespace in other branches
- 6 syntaxhighlighter.module \syntaxhighlighter_filter_tips()
2 calls to syntaxhighlighter_filter_tips()
- syntaxhighlighter_filter in ./
syntaxhighlighter.module - Implements hook_filter()
- syntaxhighlighter_help in ./
syntaxhighlighter.module
File
- ./
syntaxhighlighter.module, line 178 - Syntax highlight code using the Syntaxhighlighter javascript library. See http://alexgorbatchev.com/wiki/SyntaxHighlighter
Code
function syntaxhighlighter_filter_tips($delta, $format, $long = FALSE) {
$tag_name = variable_get('syntaxhighlighter_tagname', 'pre');
$tip = t('Syntax highlight code surrounded by the <code>!ex0</code> tags, where !lang is one of the following language brushes: %brushes.', array(
'!ex0' => "<{$tag_name} class=\"brush: <i>lang</i>\">...</{$tag_name}>",
'!lang' => '<i>lang</i>',
'%brushes' => implode(', ', _syntaxhighlighter_get_enabled_language_brushes()),
));
if ($long) {
$tip .= ' ' . t('See <a href="!url0">the SyntaxHighlighter javascript library site</a> for additional helps.', array(
'!url0' => 'http://alexgorbatchev.com/',
));
}
return $tip;
}