KTextEditor
7 #ifndef KTEXTEDITOR_ATTRIBUTE_H
8 #define KTEXTEDITOR_ATTRIBUTE_H
10 #include <QTextFormat>
12 #include <QExplicitlySharedDataPointer>
13 #include <QSharedData>
15 #include <ktexteditor_export.h>
199 void setName(
const QString &name);
220 bool skipSpellChecking()
const;
227 void setSkipSpellChecking(
bool skipspellchecking);
236 bool fontBold()
const;
245 void setFontBold(
bool bold =
true);
261 void setOutline(
const QBrush &brush);
268 QBrush selectedForeground()
const;
277 void setSelectedForeground(
const QBrush &foreground);
284 QBrush selectedBackground()
const;
293 void setSelectedBackground(
const QBrush &brush);
300 bool backgroundFillWhitespace()
const;
309 void setBackgroundFillWhitespace(
bool fillWhitespace);
321 bool hasAnyProperty()
const;
364 void setDynamicAttribute(ActivationType type,
Attribute::Ptr attribute);
390 class AttributePrivate *
const d;
@ dsError
Used to indicate wrong syntax.
@ dsDecVal
Used for decimal values.
@ dsSpecialString
Used for special strings such as regular expressions or LaTeX math mode.
@ dsConstant
Used for language constants.
int start
The column this attribute starts at.
@ dsAlert
Used for comment specials TODO and WARNING in comments.
@ dsAnnotation
Used for annotations in comments, e.g.
@ dsSpecialChar
Used for an escaped character.
@ dsVerbatimString
Used for verbatim strings such as HERE docs.
@ dsRegionMarker
Used for region markers, typically defined by BEGIN/END.
@ dsWarning
Used for warnings, e.g.
DefaultStyle
The following lists all valid default styles that are used for the syntax highlighting files in the i...
@ dsBuiltIn
Used for built-in language classes and functions.
@ dsPreprocessor
Used for preprocessor statements.
@ dsAttribute
Used for attributes of a function, e.g.
AttributeBlock(int _start, int _length, const Attribute::Ptr &_attribute)
Constructor of AttributeBlock.
@ dsControlFlow
Used for control flow highlighting, e.g., if, then, else, return, continue.
@ dsInformation
Used for information, e.g.
@ dsNormal
Default for normal text and source code.
@ dsFloat
Used for floating point numbers.
@ dsOthers
Used for attributes that do not match any of the other default styles.
@ dsImport
Used for includes, imports and modules.
ActivationType
Several automatic activation mechanisms exist for associated attributes.
@ dsOperator
Used for operators such as +, -, *, / and :: etc.
A class which provides customized text decorations.
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
@ dsFunction
Used for function definitions and function calls.
@ dsDocumentation
Used for comments that reflect API documentation.
QExplicitlySharedDataPointer< Attribute > Ptr
Shared data pointer for Attribute.
@ dsComment
Used for normal comments.
int length
The number of columns this attribute spans.
@ dsKeyword
Used for language keywords.
@ dsVariable
Used for variables, if applicable.
@ dsCommentVar
Used to refer to variables in a comment, e.g.
Attribute::Ptr attribute
The attribute for the current range.
@ dsChar
Used for a single character.
@ dsBaseN
Used for numbers with base other than 10.
@ dsExtension
Used for extensions, such as Qt or boost.
@ dsString
Used for strings.
Attributes of a part of a line.
@ dsDataType
Used for data types such as int, char, float etc.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 30 2023 03:49:26 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.