mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
WI-7830 setting for base background/foreground of html code
This commit is contained in:
@@ -21,6 +21,7 @@ options.general.attribute.descriptor.text.search.result=Text search result
|
||||
options.general.attribute.descriptor.template.variable=Template variable
|
||||
|
||||
options.html.attribute.descriptor.comment=Comment
|
||||
options.html.attribute.descriptor.code=HTML code
|
||||
options.html.attribute.descriptor.tag=Tag
|
||||
options.html.attribute.descriptor.tag.name=Tag name
|
||||
options.html.attribute.descriptor.attribute.name=Attribute name
|
||||
|
||||
@@ -7562,6 +7562,7 @@
|
||||
<option name="comment" hit="Comment" />
|
||||
<option name="entity" hit="Entity reference" />
|
||||
<option name="reference" hit="Entity reference" />
|
||||
<option name="code" hit="HTML code" />
|
||||
<option name="tag" hit="Tag" />
|
||||
<option name="name" hit="Tag name" />
|
||||
<option name="tag" hit="Tag name" />
|
||||
|
||||
@@ -87,7 +87,7 @@ public class HtmlFileHighlighter extends SyntaxHighlighterBase {
|
||||
|
||||
@NotNull
|
||||
public TextAttributesKey[] getTokenHighlights(IElementType tokenType) {
|
||||
return pack(keys1.get(tokenType), keys2.get(tokenType));
|
||||
return pack(XmlHighlighterColors.HTML_CODE, pack(keys1.get(tokenType), keys2.get(tokenType)));
|
||||
}
|
||||
|
||||
public static final void registerEmbeddedTokenAttributes(Map<IElementType, TextAttributesKey> _keys1,
|
||||
|
||||
@@ -34,6 +34,7 @@ import java.util.Map;
|
||||
|
||||
public class HTMLColorsPage implements ColorSettingsPage {
|
||||
private static final AttributesDescriptor[] ATTRS = new AttributesDescriptor[] {
|
||||
new AttributesDescriptor(OptionsBundle.message("options.html.attribute.descriptor.code"), XmlHighlighterColors.HTML_CODE),
|
||||
new AttributesDescriptor(OptionsBundle.message("options.html.attribute.descriptor.comment"), XmlHighlighterColors.HTML_COMMENT),
|
||||
new AttributesDescriptor(OptionsBundle.message("options.html.attribute.descriptor.tag"), XmlHighlighterColors.HTML_TAG),
|
||||
new AttributesDescriptor(OptionsBundle.message("options.html.attribute.descriptor.tag.name"), XmlHighlighterColors.HTML_TAG_NAME),
|
||||
|
||||
@@ -39,4 +39,7 @@ public class XmlHighlighterColors {
|
||||
public static final TextAttributesKey HTML_ATTRIBUTE_NAME = TextAttributesKey.createTextAttributesKey("HTML_ATTRIBUTE_NAME");
|
||||
public static final TextAttributesKey HTML_ATTRIBUTE_VALUE = TextAttributesKey.createTextAttributesKey("HTML_ATTRIBUTE_VALUE");
|
||||
public static final TextAttributesKey HTML_ENTITY_REFERENCE = TextAttributesKey.createTextAttributesKey("HTML_ENTITY_REFERENCE");
|
||||
|
||||
public static final TextAttributesKey HTML_CODE =
|
||||
TextAttributesKey.createTextAttributesKey("HTML_CODE", HighlighterColors.TEXT.getDefaultAttributes().clone());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user