mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 10:17:50 +08:00
syntax_highlighting_and_error_highlighting.md: Change header: TextAttributeKey -> Text Attribute Key
This commit is contained in:
parent
307990090f
commit
1ba4ee5402
@ -74,12 +74,12 @@ Some additional properties are available when inspecting <control>Settings</cont
|
||||
|
||||
> _UI Inspector_ must be invoked only after opening the <control>Settings</control> dialog.
|
||||
|
||||
| <p>Settings page</p><p>Reference</p> | Properties |
|
||||
|--------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| <p>_All settings_</p><p>[](settings_guide.md)</p> | <p><control>Configurable class</control> - [`Configurable`](%gh-ic%/platform/ide-core/src/com/intellij/openapi/options/Configurable.java) class</p><p><control>Configurable ID</control> - `id` attribute</p><p><control>Configurable weight</control> - `groupWeight` attribute</p> |
|
||||
| <p><ui-path>Editor | Color Scheme</ui-path></p><p>[](syntax_highlighting_and_error_highlighting.md#textattributeskey)</p> | <p><control>Text Attributes Key</control> - [`TextAttributesKey`](%gh-ic%/platform/core-api/src/com/intellij/openapi/editor/colors/TextAttributesKey.java) external name</p> |
|
||||
| <p><ui-path>Editor | File Types</ui-path></p><p>[](registering_file_type.md)</p> | <p><control>FileTypeID</control> - `FileType.getName()`</p><p><control>FileType Class</control> - [`FileType`](%gh-ic%/platform/core-api/src/com/intellij/openapi/fileTypes/FileType.java) implementation</p> |
|
||||
| <p><ui-path>Editor | Inspections</ui-path></p><p>[](code_inspections.md)</p> | <p><control>Inspection key</control> - Inspection `id`</p><p><control>Inspection tool class</control> - Inspection implementation</p> |
|
||||
| <p><ui-path>Editor | Inlays</ui-path></p><p>[](inlay_hints.md)</p> | <p><control>Inlay Group Key</control> - [`InlayGroupSettingProvider.getGroup().key`](%gh-ic%/platform/lang-api/src/com/intellij/codeInsight/hints/settings/InlayGroupSettingProvider.kt)</p><p><control>Inlay Group Key</control> - [`InlayGroup.key`](%gh-ic%/platform/lang-api/src/com/intellij/codeInsight/hints/InlayHintsProvider.kt)</p><p><control>Inlay Provider Model ID</control> - [`InlayProviderSettingsModel.id`](%gh-ic%/platform/lang-api/src/com/intellij/codeInsight/hints/settings/InlayProviderSettingsModel.kt)</p><p><control>Inlay ImmediateConfigurable ID</control> - [`ImmediateConfigurable.Case.id`](%gh-ic%/platform/lang-api/src/com/intellij/codeInsight/hints/InlayHintsProvider.kt)</p> |
|
||||
| <p><ui-path>Editor | Intentions</ui-path></p><p>[](code_intentions.md)</p> | <p><control>Intention Class</control> - [`IntentionAction`](%gh-ic%/platform/analysis-api/src/com/intellij/codeInsight/intention/IntentionAction.java) class</p><p><control>Intention description directory</control> - `<descriptionDirectoryName>`</p> |
|
||||
| <p><ui-path>Plugins</ui-path></p><p>[](plugin_configuration_file.md)</p> | <p><control>Plugin ID</control> - Plugin `<id>`</p><p><control>Plugin Dependencies</control> - IDs of dependent plugins</p> |
|
||||
| <p>Settings page</p><p>Reference</p> | Properties |
|
||||
|----------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| <p>_All settings_</p><p>[](settings_guide.md)</p> | <p><control>Configurable class</control> - [`Configurable`](%gh-ic%/platform/ide-core/src/com/intellij/openapi/options/Configurable.java) class</p><p><control>Configurable ID</control> - `id` attribute</p><p><control>Configurable weight</control> - `groupWeight` attribute</p> |
|
||||
| <p><ui-path>Editor | Color Scheme</ui-path></p><p>[](syntax_highlighting_and_error_highlighting.md#text-attributes-key)</p> | <p><control>Text Attributes Key</control> - [`TextAttributesKey`](%gh-ic%/platform/core-api/src/com/intellij/openapi/editor/colors/TextAttributesKey.java) external name</p> |
|
||||
| <p><ui-path>Editor | File Types</ui-path></p><p>[](registering_file_type.md)</p> | <p><control>FileTypeID</control> - `FileType.getName()`</p><p><control>FileType Class</control> - [`FileType`](%gh-ic%/platform/core-api/src/com/intellij/openapi/fileTypes/FileType.java) implementation</p> |
|
||||
| <p><ui-path>Editor | Inspections</ui-path></p><p>[](code_inspections.md)</p> | <p><control>Inspection key</control> - Inspection `id`</p><p><control>Inspection tool class</control> - Inspection implementation</p> |
|
||||
| <p><ui-path>Editor | Inlays</ui-path></p><p>[](inlay_hints.md)</p> | <p><control>Inlay Group Key</control> - [`InlayGroupSettingProvider.getGroup().key`](%gh-ic%/platform/lang-api/src/com/intellij/codeInsight/hints/settings/InlayGroupSettingProvider.kt)</p><p><control>Inlay Group Key</control> - [`InlayGroup.key`](%gh-ic%/platform/lang-api/src/com/intellij/codeInsight/hints/InlayHintsProvider.kt)</p><p><control>Inlay Provider Model ID</control> - [`InlayProviderSettingsModel.id`](%gh-ic%/platform/lang-api/src/com/intellij/codeInsight/hints/settings/InlayProviderSettingsModel.kt)</p><p><control>Inlay ImmediateConfigurable ID</control> - [`ImmediateConfigurable.Case.id`](%gh-ic%/platform/lang-api/src/com/intellij/codeInsight/hints/InlayHintsProvider.kt)</p> |
|
||||
| <p><ui-path>Editor | Intentions</ui-path></p><p>[](code_intentions.md)</p> | <p><control>Intention Class</control> - [`IntentionAction`](%gh-ic%/platform/analysis-api/src/com/intellij/codeInsight/intention/IntentionAction.java) class</p><p><control>Intention description directory</control> - `<descriptionDirectoryName>`</p> |
|
||||
| <p><ui-path>Plugins</ui-path></p><p>[](plugin_configuration_file.md)</p> | <p><control>Plugin ID</control> - Plugin `<id>`</p><p><control>Plugin Dependencies</control> - IDs of dependent plugins</p> |
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
The syntax and error highlighting are performed on multiple levels: [](#lexer), [](#parser), and [](#annotator)/[](#external-annotator).
|
||||
|
||||
## TextAttributesKey
|
||||
## Text Attributes Key
|
||||
|
||||
How a particular range of text should be highlighted is defined via [`TextAttributesKey`](%gh-ic%/platform/core-api/src/com/intellij/openapi/editor/colors/TextAttributesKey.java).
|
||||
An instance of this class is created for every distinct type of item that should be highlighted (keyword, number, string literal, etc.).
|
||||
|
Loading…
x
Reference in New Issue
Block a user