The GenericHighlighter class provides a regexp-based programmable syntax highlighter.
#include <generichighlighter.h>
|
class | Rule |
| The Rule class stores a syntax highlighting rule as a set of QRegExp patterns and a text format. More...
|
|
|
void | highlightBlock (const QString &text) override |
|
◆ GenericHighlighter() [1/2]
Construct a highlighter with an empty rule set.
◆ GenericHighlighter() [2/2]
Construct a new highlighter using the rule set of other.
◆ operator=()
Replace this highlighter's rule set with that of other.
◆ operator+=()
Concatenate other's rule set with this highlighter's rule set.
◆ addRule()
Add a new rule to this highlighter, returning a reference to the new rule.
◆ ruleCount()
- Returns
- The number of rules in this highlighter.
◆ rule() [1/2]
- Returns
- A reference to the rule at the specified zero-based index.
◆ rule() [2/2]
const Rule & rule |
( |
int |
idx | ) |
const |
- Returns
- A reference to the rule at the specified zero-based index.
◆ rules()
QList< Rule > rules |
( |
| ) |
const |
- Returns
- An ordered list of this highlighter's rules.
The documentation for this class was generated from the following file: