Highlighter Class Reference

#include <highlighter.h>

List of all members.

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< HighlightingRulehighlightingRules
 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...


Detailed Description

This class allows the creation of a Syntax Highlighter as well as the storing of highlighting rules


The documentation for this class was generated from the following files:
Generated on Fri Apr 27 10:27:38 2007 for Green Engine by  doxygen 1.5.1