kdeui
KSyntaxHighlighter Class Reference
Syntax sensitive text highlighter. More...
#include <ksyntaxhighlighter.h>
Inheritance diagram for KSyntaxHighlighter:
Public Types | |
enum | SyntaxMode { PlainTextMode, RichTextMode } |
Public Member Functions | |
int | highlightParagraph (const QString &text, int endStateOfLastPara) |
KSyntaxHighlighter (QTextEdit *textEdit, bool colorQuoting=false, const QColor &QuoteColor0=black, const QColor &QuoteColor1=QColor(0x00, 0x80, 0x00), const QColor &QuoteColor2=QColor(0x00, 0x80, 0x00), const QColor &QuoteColor3=QColor(0x00, 0x80, 0x00), SyntaxMode mode=PlainTextMode) | |
~KSyntaxHighlighter () |
Detailed Description
Syntax sensitive text highlighter.Definition at line 42 of file ksyntaxhighlighter.h.
Member Enumeration Documentation
Constructor & Destructor Documentation
KSyntaxHighlighter::KSyntaxHighlighter | ( | QTextEdit * | textEdit, | |
bool | colorQuoting = false , |
|||
const QColor & | QuoteColor0 = black , |
|||
const QColor & | QuoteColor1 = QColor( 0x00, 0x80, 0x00 ) , |
|||
const QColor & | QuoteColor2 = QColor( 0x00, 0x80, 0x00 ) , |
|||
const QColor & | QuoteColor3 = QColor( 0x00, 0x80, 0x00 ) , |
|||
SyntaxMode | mode = PlainTextMode | |||
) |
Definition at line 117 of file ksyntaxhighlighter.cpp.
KSyntaxHighlighter::~KSyntaxHighlighter | ( | ) |
Definition at line 138 of file ksyntaxhighlighter.cpp.
Member Function Documentation
int KSyntaxHighlighter::highlightParagraph | ( | const QString & | text, | |
int | endStateOfLastPara | |||
) |
Reimplemented from QSyntaxHighlighter.
Reimplemented in KSpellingHighlighter.
Definition at line 143 of file ksyntaxhighlighter.cpp.
The documentation for this class was generated from the following files: