#include <highlighter.h>
Public Member Functions | |
Highlighter (QTextDocument *parent=0) | |
Constructor. | |
Protected Member Functions | |
void | highlightBlock (const QString &text) |
Function to allow multi-line highlighting. | |
Private Attributes | |
QVector< HighlightingRule > | highlightingRules |
Vector (in essence an array) to store rules. | |
QRegExp | commentStartExpression |
Regular Expression to define the start of a multi-line comment. | |
QRegExp | commentEndExpression |
Regular Expression to define the end of a multi-line comment. | |
QTextCharFormat | keywordFormat |
Formating of keywords. | |
QTextCharFormat | singleLineCommentFormat |
Formating of classes. | |
QTextCharFormat | multiLineCommentFormat |
Formating of multi-line comments. | |
QTextCharFormat | quotationFormat |
Formating of strings in quotes. | |
Classes | |
struct | HighlightingRule |
Struct to store rules. More... |