Scribus
Open source desktop publishing at your fingertips
SyntaxHighlighter Class Reference

Simple syntax highlighting for Scripter (QTextEdit). Based on the source of the Sqliteman and Qt4 examples. but very simplifier. Improved too (of course). TODO: colors of the higlited texts. User should set the colors in the preferences. Waiting for the new plugin API. More...

#include <pconsole.h>

Inheritance diagram for SyntaxHighlighter:
Collaboration diagram for SyntaxHighlighter:

Classes

struct  HighlightingRule
 

Public Member Functions

 SyntaxHighlighter (QTextEdit *textEdit)
 

Protected Member Functions

virtual void highlightBlock (const QString &text)
 

Protected Attributes

QVector< HighlightingRulehighlightingRules
 
QTextCharFormat keywordFormat
 
QTextCharFormat singleLineCommentFormat
 
QTextCharFormat quotationFormat
 
QTextCharFormat numberFormat
 
QTextCharFormat operatorFormat
 
SyntaxColors colors
 

Detailed Description

Simple syntax highlighting for Scripter (QTextEdit). Based on the source of the Sqliteman and Qt4 examples. but very simplifier. Improved too (of course). TODO: colors of the higlited texts. User should set the colors in the preferences. Waiting for the new plugin API.

Author
Petr Vanek, petr@.nosp@m.yarp.nosp@m.en.cz

The documentation for this class was generated from the following files: