Skip to content
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).

Brush API

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 API

syntaxhighlighter module exposes these methods:

  • default (aka SyntaxHighlighter)

    • highlight(params = {}, element = null)
  • registerBrush(BrushClass)

  • clearRegisteredBrushes()