Module implementing a syntax highlighter for diff outputs.
_REGEX_CACHE |
E5GenericDiffHighlighter | Class implementing a generic diff highlighter. |
TERMINAL | Function to mark a pattern as the final one to search for. |
Class implementing a generic diff highlighter.
None |
None |
E5GenericDiffHighlighter | Constructor |
__initColours | Private method to initialize the highlighter colours. |
createRules | Public method to create the highlighting rules. |
formats | Public method to determine the highlighting formats for a line of text. |
generateRules | Public method to generate the rule set. |
highlightBlock | Public method to highlight a block of text. |
makeFormat | Public method to generate a format definition. |
regenerateRules | Public method to initialize or regenerate the syntax highlighter rules. |
None |
Constructor
Private method to initialize the highlighter colours.
Public method to create the highlighting rules.
Public method to determine the highlighting formats for a line of text.
Public method to generate the rule set.
Note: This method must me implemented by derived syntax highlighters.
Public method to highlight a block of text.
Public method to generate a format definition.
Public method to initialize or regenerate the syntax highlighter rules.
Function to mark a pattern as the final one to search for.