QCodeEdit
2.2
|
Public Member Functions | |
virtual QString | language () const |
virtual QStringList | extensions () const |
virtual int | tokenize (QDocument *d, int line, int count) |
Entry point for syntax highlighting. | |
virtual QString | singleLineComment () const |
Return the string starting a single line comment, if any offered by the language. | |
virtual QString | defaultLineMark () const |
Let language specify which line mark should be toggled by left clicking a line mark panel. | |
virtual void | clearMatches (QDocument *d) |
Brace matching entry point. | |
virtual void | match (QDocumentCursor &c) |
Brace matching entry point. | |
virtual QString | indent (const QDocumentCursor &c) |
Return the indent to use when inserting a line at a given cursor position. | |
virtual bool | unindent (const QDocumentCursor &c, const QString &ktxt) |
Determines whether the given key event at the given position should cause unindent to happen. | |
virtual void | expand (QDocument *d, int line) |
Expand a collapsed block at a given line. | |
virtual void | collapse (QDocument *d, int line) |
Collapse a text block at a given line. | |
virtual int | blockFlags (QDocument *d, int line, int depth) const |
Compute the collapse state of a line. | |
![]() | |
Q_DECLARE_FLAGS (CollapseState, CollapseFlag) | |
QLanguageDefinition () | |
Empty constructor. | |
virtual | ~QLanguageDefinition () |
Empty destructor. | |
Static Public Member Functions | |
static void | load (QFile *f, QLanguageFactory::LangData *d, QFormatScheme *s) |
static void | load (const QString &file, QLanguageFactory::LangData *d, QFormatScheme *s) |
static void | load (const QDomDocument &doc, QLanguageFactory::LangData *d, QFormatScheme *s) |
static void | addContext (const QString &id, QNFA *nfa) |
static void | addEmbedRequest (const QString &lang, QNFA *dest) |
static void | shareEmbedRequests (QNFA *src, QNFA *dest, int offset) |
Additional Inherited Members | |
![]() | |
enum | CollapseFlag { None = 0x00000000, Collapsible = 0x10000000, Collapsed = 0x20000000, Closure = 0x40000000, CloseMask = 0x00fff000, OpenMask = 0x00000fff } |
Collapse state of a line. More... | |
|
virtual |
Implements QLanguageDefinition.
|
virtual |
Implements QLanguageDefinition.