SyntaxHighlighter 3.0.83

Fork Me On GitHub
whats new?
SyntaxHighlighter is an open source Java Script client side code syntax highlighter.
donate download installation autoloader configuration @syntaxhighlight

API

SyntaxHighlighter.Highlighter

This is the main class that performs all the highlighting work and it’s the base class for developing custom brushes. Each brush extends this class and adds its own custom lexicon and rules. Here are the properties and methods of interest:

NameTypeDescription
getKeywordsFunctionConverts space separated keywords into usable regular expression to match these keywords.
forHtmlScriptFunctionSets up the brush for html-script functionality.