Alex Gorbatchev edited this page Feb 20, 2016
·
5 revisions
These instructions apply to v4 and up. If you are looking for instructions for older version, please see the original manual.
💰 💰 💰 Please click here to donate via PayPal and just like they say on TV – give generously! It motivates me to keep working on this (12 years now and counting).
Every SyntaxHighlighter brush extends BaseBrush
class defined in brush-base. See Making a Brush if you want to create a custom brush.
-
getKeywords(str)
-
forHtmlScript(regexGroup)
-
getHtml(code, params = {})
syntaxhighlighter
module exposes these methods:
-
default
(akaSyntaxHighlighter
)highlight(params = {}, element = null)
-
registerBrush(BrushClass)
-
clearRegisteredBrushes()