Declarations for syntax highlighting emitter. More...


Go to the source code of this file.
Classes | |
| class | RepData |
| A container for string replacements. More... | |
| class | Highlighter |
| Class to process the syntax highlighting. More... | |
| union | Highlighter.__unnamed1__ |
| All flags for output formats in a UNION. More... | |
| class | Highlighter.__unnamed1__.__unnamed3__ |
| Individual flags for a single output format. More... | |
Functions | |
| FUNCTION_AS_STRING | html_eol (BYVAL_AS_RepData_PTR, BYREF_AS_INTEGER) |
| Generate end of line code for HTML output. More... | |
| FUNCTION_AS_STRING | html_specials (BYVAL_AS_UBYTE_PTR, BYVAL_AS_INTEGER, BYVAL_AS_INTEGER) |
| Replace special characters for HTML output. More... | |
Declarations for syntax highlighting emitter.
This file contains the declaration code for the "SyntaxHighLighting" emitter, namely the classes RepData and Highlighter.
Definition in file fbdoc_emit_syntax.bi.
| union Highlighter.__unnamed1__ |
All flags for output formats in a UNION.
Definition at line 82 of file fbdoc_emit_syntax.bi.
| Class Members | ||
|---|---|---|
| __unnamed1__ | __unnamed__ | Individual flags for a single output format. |
| LONG | GenAny | Summary of all output flags. |
| class Highlighter.__unnamed1__.__unnamed3__ |
Individual flags for a single output format.
Definition at line 84 of file fbdoc_emit_syntax.bi.
| Class Members | ||
|---|---|---|
| UBYTE | GenHtm | Flag for html output. |
| UBYTE | GenTex | Flag for LaTeX output. |
| UBYTE | GenXml | Flag for XML output. |
| FUNCTION_AS_STRING html_eol | ( | BYVAL_AS_RepData_PTR | Symb, |
| BYREF_AS_INTEGER | Nr | ||
| ) |
Generate end of line code for HTML output.
| Symb | Symbol table for cross-referencing |
| Nr | Line number |
The function is used as Highlighter::eol() function. It generates code to end the current line and start a new one with the next line number. The number counter gets increased and returned as a BYREF parameter. Special line numbers are
Definition at line 167 of file fbdoc_emit_syntax.bas.

| FUNCTION_AS_STRING html_specials | ( | BYVAL_AS_UBYTE_PTR | T, |
| BYVAL_AS_INTEGER | A, | ||
| BYVAL_AS_INTEGER | L | ||
| ) |
Replace special characters for HTML output.
| T | The Buffer to read from |
| A | Start position (zero based) |
| L | Length of substring |
The function is used as Highlighter::special_chars() function. It extracts a substring from the input buffer. Special characters are replaced by their HTML equivalents.
Definition at line 81 of file fbdoc_emit_syntax.bas.
