You are here

function syntaxhighlighter_filter_info in Syntax Highlighter 7

Same name and namespace in other branches
  1. 7.2 syntaxhighlighter.module \syntaxhighlighter_filter_info()

Implements hook_filter_info()

declare the syntaxhighlighter filter

File

./syntaxhighlighter.module, line 158
Syntax highlight code using the Syntaxhighlighter javascript library. See http://alexgorbatchev.com/wiki/SyntaxHighlighter

Code

function syntaxhighlighter_filter_info() {
  $filters['syntaxhighlighter'] = array(
    'title' => t('Syntax highlighter'),
    'description' => t('Process syntax highlighter filter code block'),
    'tips callback' => '_syntaxhighlighter_filter_tips',
    'prepare callback' => '_syntaxhighlighter_do_filter_prepare',
    'process callback' => '_syntaxhighlighter_do_filter_process',
    'cache' => TRUE,
  );
  return $filters;
}