KSyntaxHighlighting
abstracthighlighter.h
166Q_DECLARE_INTERFACE(KSyntaxHighlighting::AbstractHighlighter, "org.kde.SyntaxHighlighting.AbstractHighlighter")
Abstract base class for highlighters.
Definition abstracthighlighter.h:67
virtual void applyFormat(int offset, int length, const Format &format)=0
Reimplement this to apply formats to your output.
virtual void setDefinition(const Definition &def)
Sets the syntax definition used for highlighting.
Definition abstracthighlighter.cpp:71
Theme theme() const
Returns the currently selected theme for highlighting.
Definition abstracthighlighter.cpp:77
virtual void setTheme(const Theme &theme)
Sets the theme used for highlighting.
Definition abstracthighlighter.cpp:83
virtual void applyFolding(int offset, int length, FoldingRegion region)
Reimplement this to apply folding to your output.
Definition abstracthighlighter.cpp:435
Definition definition() const
Returns the syntax definition used for highlighting.
Definition abstracthighlighter.cpp:66
State highlightLine(QStringView text, const State &state)
Highlight the given line.
Definition abstracthighlighter.cpp:103
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
Opaque handle to the state of the highlighting engine.
Definition state.h:30
Syntax highlighting engine for Kate syntax definitions.
Definition abstracthighlighter.h:17
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.