SpeedCrunch
0.11
|
#include <syntaxhighlighter.h>
Public Types | |
enum | ColorScheme { Terminal = 0, Standard = 1, Sublime = 2, SolarizedLight = 3, SolarizedDark = 4 } |
enum | Role { Cursor, Number, Parens, Result, Comment, Matched, Function, Operator, Variable, ScrollBar, Separator, Background, EditorBackground } |
Public Member Functions | |
SyntaxHighlighter (QPlainTextEdit *) | |
void | setColorScheme (ColorScheme) |
QColor | colorForRole (Role role) const |
void | setColorForRole (Role role, const QColor &color) |
void | update () |
virtual void | highlightBlock (const QString &) |
SyntaxHighlighter::SyntaxHighlighter | ( | QPlainTextEdit * | edit | ) | [explicit] |
QColor SyntaxHighlighter::colorForRole | ( | Role | role | ) | const [inline] |
void SyntaxHighlighter::highlightBlock | ( | const QString & | text | ) | [virtual] |
void SyntaxHighlighter::setColorForRole | ( | Role | role, |
const QColor & | color | ||
) | [inline] |
void SyntaxHighlighter::update | ( | ) |