![]() |
Scribus
Open source desktop publishing at your fingertips
|
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>
Classes | |
struct | HighlightingRule |
Public Member Functions | |
SyntaxHighlighter (QTextEdit *textEdit) | |
Protected Member Functions | |
virtual void | highlightBlock (const QString &text) |
Protected Attributes | |
QVector< HighlightingRule > | highlightingRules |
QTextCharFormat | keywordFormat |
QTextCharFormat | singleLineCommentFormat |
QTextCharFormat | quotationFormat |
QTextCharFormat | numberFormat |
QTextCharFormat | operatorFormat |
SyntaxColors | colors |
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.