KSyntaxHighlighting
htmlhighlighter.cpp
127 *d->out << "<meta name=\"generator\" content=\"KF5::SyntaxHighlighting - Definition (" << definition().name() << ") - Theme (" << theme().name()
130 *d->out << " style=\"background-color:" << toHtmlRgbaString(QColor::fromRgba(theme().editorColor(Theme::BackgroundColor)));
161 formatOutput << QStringLiteral("color:") << toHtmlRgbaString(format.textColor(theme())) << QStringLiteral(";");
164 formatOutput << QStringLiteral("background-color:") << toHtmlRgbaString(format.backgroundColor(theme())) << QStringLiteral(";");
Opaque handle to the state of the highlighting engine.
Definition: state.h:25
QString number(int n, int base)
WriteOnly
QString toHtmlEscaped() const const
bool hasBackgroundColor(const Theme &theme) const
Returns true if the combination of this format and the theme theme change the background color compar...
Definition: format.cpp:135
QString name() const const
int red() const const
Describes the format to be used for a specific text fragment.
Definition: format.h:33
QColor fromRgba(QRgb rgba)
bool hasTextColor(const Theme &theme) const
Returns true if the combination of this format and the theme theme change the foreground color compar...
Definition: format.cpp:120
bool isItalic(const Theme &theme) const
Returns true if the combination of this format and the given theme results in italic text formatting.
Definition: format.cpp:159
QColor textColor(const Theme &theme) const
Returns the foreground color of the combination of this format and the given theme.
Definition: format.cpp:125
bool isEmpty() const const
Definition: abstracthighlighter.h:20
int alpha() const const
int green() const const
QColor backgroundColor(const Theme &theme) const
Returns the background color of the combination of this format and the given theme.
Definition: format.cpp:140
bool isEmpty() const const
qreal alphaF() const const
bool isUnderline(const Theme &theme) const
Returns true if the combination of this format and the given theme results in underlined text.
Definition: format.cpp:168
int blue() const const
@ Normal
Default text style for normal text and source code without special highlighting.
Definition: theme.h:83
bool isStrikeThrough(const Theme &theme) const
Returns true if the combination of this format and the given theme results in struck through text.
Definition: format.cpp:177
bool isBold(const Theme &theme) const
Returns true if the combination of this format and the given theme results in bold text formatting.
Definition: format.cpp:150
QString & append(QChar ch)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Mar 26 2023 04:09:17 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Mar 26 2023 04:09:17 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.