KSyntaxHighlighting
syntaxhighlighter.h
26class KSYNTAXHIGHLIGHTING_EXPORT SyntaxHighlighter : public QSyntaxHighlighter, public AbstractHighlighter
Theme theme() const
Returns the currently selected theme for highlighting.
Definition abstracthighlighter.cpp:77
Represents a begin or end of a folding region.
Definition foldingregion.h:19
Describes the format to be used for a specific text fragment.
Definition format.h:28
QTextBlock findFoldingRegionEnd(const QTextBlock &startBlock) const
Finds the end of the folding region starting at startBlock.
Definition syntaxhighlighter.cpp:158
void applyFolding(int offset, int length, FoldingRegion region) override
Reimplement this to apply folding to your output.
Definition syntaxhighlighter.cpp:249
void setTheme(const Theme &theme) override
Sets the theme used for highlighting.
Definition syntaxhighlighter.cpp:144
bool startsFoldingRegion(const QTextBlock &startBlock) const
Returns whether there is a folding region beginning at startBlock.
Definition syntaxhighlighter.cpp:153
void applyFormat(int offset, int length, const Format &format) override
Reimplement this to apply formats to your output.
Definition syntaxhighlighter.cpp:225
void setDefinition(const Definition &def) override
Sets the syntax definition used for highlighting.
Definition syntaxhighlighter.cpp:130
Syntax highlighting engine for Kate syntax definitions.
Definition abstracthighlighter.h:17
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
QObject * parent() const const
QSyntaxHighlighter(QObject *parent)
QTextDocument * document() const const
QTextCharFormat format(int position) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:48:02 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:48:02 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.