Logo Search packages:      
Sourcecode: cantor version File versions  Download package

Public Types | Public Member Functions | Protected Member Functions

SageHighlighter Class Reference

Inheritance diagram for SageHighlighter:
Inheritance graph
Collaboration diagram for SageHighlighter:
Collaboration graph

List of all members.

Public Types

enum  { BlockTypeProperty = QTextFormat::UserProperty +25 }
enum  BlockType {
  UnknownBlock = 0, ErrorBlock = 1, ResultBlock = 2, CommandBlock = 3,
  NoHighlightBlock = 4

Public Member Functions

 SageHighlighter (QTextEdit *edit)

Protected Member Functions

template<class Container >
void addFunctions (const Container &functions)
template<class Container >
void addKeywords (const Container &keywords)
void addPair (const QChar &openSymbol, const QChar &closeSymbol)
void addRule (const QRegExp &regexp, const QTextCharFormat &format)
void addRule (const QString &word, const QTextCharFormat &format)
template<class Container >
void addRules (const Container &conditions, const QTextCharFormat &format)
template<class Container >
void addVariables (const Container &variables)
QTextCharFormat commentFormat () const
BlockType currentBlockType ()
QTextCharFormat errorFormat () const
QTextCharFormat functionFormat () const
virtual void highlightBlock (const QString &text)
void highlightPairs (const QString &text)
void highlightRegExps (const QString &text)
void highlightWords (const QString &text)
QTextCharFormat keywordFormat () const
QTextCharFormat matchingPairFormat () const
QTextCharFormat numberFormat () const
QTextCharFormat objectFormat () const
QTextCharFormat operatorFormat () const
void removeRule (const QRegExp &regexp)
void removeRule (const QString &word)
template<class Container >
void removeRules (const Container &conditions)
bool skipHighlighting (const QString &text)
QTextCharFormat stringFormat () const
QTextCharFormat variableFormat () const

Detailed Description

Definition at line 33 of file sagehighlighter.h.

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

Generated by  Doxygen 1.6.0   Back to index