SpeedCrunch  0.11
Public Types | Public Member Functions
SyntaxHighlighter Class Reference

#include <syntaxhighlighter.h>

List of all members.

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 &)

Member Enumeration Documentation

Enumerator:
Terminal 
Standard 
Sublime 
SolarizedLight 
SolarizedDark 
Enumerator:
Cursor 
Number 
Parens 
Result 
Comment 
Matched 
Function 
Operator 
Variable 
ScrollBar 
Separator 
Background 
EditorBackground 

Constructor & Destructor Documentation

SyntaxHighlighter::SyntaxHighlighter ( QPlainTextEdit *  edit) [explicit]

Member Function Documentation

QColor SyntaxHighlighter::colorForRole ( Role  role) const [inline]
void SyntaxHighlighter::highlightBlock ( const QString &  text) [virtual]
void SyntaxHighlighter::setColorForRole ( Role  role,
const QColor &  color 
) [inline]

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