function _syntaxhighlighter_filter_tips in Syntax Highlighter 7.2
Same name and namespace in other branches
- 8 syntaxhighlighter.module \_syntaxhighlighter_filter_tips()
- 7 syntaxhighlighter.module \_syntaxhighlighter_filter_tips()
1 call to _syntaxhighlighter_filter_tips()
1 string reference to '_syntaxhighlighter_filter_tips'
- syntaxhighlighter_filter_info in ./
syntaxhighlighter.module - Implements hook_filter_info()
File
- ./
syntaxhighlighter.module, line 176 - Syntax highlight code using the Syntaxhighlighter javascript library. See http://alexgorbatchev.com/wiki/SyntaxHighlighter
Code
function _syntaxhighlighter_filter_tips($filter, $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;
}