Tinderbox v9 Icon

Highlighters

/Hints/Highlighters

This container holds notes that describe ways to highlight the text of a note. Any note can opt in to highlighting by setting the $SyntaxHighlighting value. For example, setting $SyntaxHighlighting to markdown would tell Tinderbox to use the highlight methods found in /Hints/Highlighters/markdown. Adding the built-in Hints container, generates two specimen highlighter notes in the /Hints/Highlighters container:

The highlighting methods are a list of regular expressions and formats. The first line of a highlighting rule must not be indented; additional lines for each rule must be indented. Empty lines may be added between rules for clarity. For example:

pattern:parent|grandparent|nextSibling|previousSibling

color: red

would locate any of these words and colour them red.

Highlighters set the base colour of notes to their $TextColor rather than to "black" (#000000). NOTE: this styling sets the RTF layer styling of text. Not all styling can be exported via (HTML) Export and deleting a rule does not not 'un-set' the style previously set by that rule.

Comments are preceded by // and continue for the rest of the line, thus:

pattern:parent

color: red // perhaps dark red is better?

Highlighters can use any of the following rules:

Highlighters allow you to set line-spacing as a multiple of the normal line spacing.

Highlighters allow you to set the indent of the paragraph, as well as its first-indent — the indentation of the paragraph's first line.