SyntaxHighlighter.regexLib
This object has a number of preconfigured commonly used regular expressions.
multiLineCComments- Matches:
/\* ... \*/ singleLineCComments- Matches:
// ... singleLinePerlComments- Matches:
# ... doubleQuotedString- Matches:
" ... \" ... " singleQuotedString- Matches:
' ... \' ... ' multiLineDoubleQuotedString- Matches:
" ... \" ... \n ... " multiLineSingleQuotedString- Matches:
' ... \' ... \n ... ' url- Matches:
...://... phpScriptTags- Matches:
<? ... ?> aspScriptTags- Matches:
<% ... %> scriptScriptTags- Matches:
<script ...>... </script>
SyntaxHighlighter API
SyntaxHighlighter is the top level object and contains a number of functionality and predefined variables.
| Name | Type | Description |
|---|---|---|
all | Function | Static function which process all elements on the page and performs syntax highlighting. |
Highlighter | Class | The base class for a brush. |
regexLib | Object | Commonly used regular expressions. |