[enhancement] extract text attributes keys into variables for the syntax highlighter
javatlacati opened this issue · 3 comments
javatlacati commented
in example:
if you have it extracted
public static final TextAttributesKey COMMENT =
createTextAttributesKey("COMMENT", DefaultLanguageHighlighterColors.LINE_COMMENT);
you can easily configure colors setting page
public class PrologColorSettingsPage implements ColorSettingsPage {
private static final AttributesDescriptor[] DESCRIPTORS = new AttributesDescriptor[]{
new AttributesDescriptor("Line Comment", PrologSyntaxHighlighter.COMMENT),
};
@Override
public AttributesDescriptor @NotNull [] getAttributeDescriptors() {
return DESCRIPTORS;
}
Phosphorus15 commented
That sounds like a great idea! Are you interested in turning this into a PR? My hands are tight this week, so I might be unable to make this improvement happen soon.
javatlacati commented
Sorry I still haven't learnt Scala and wouldn't know how to do the changes
El 8 ene 2023, a la(s) 4:17, phosphorus ***@***.***> escribió:
That sounds like a great idea! Are you interested in turning this into a PR? My hands are tight this week, so I might be unable to make this improvement happen soon.
—
Reply to this email directly, view it on GitHub<#113 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAIDXXMCU25NONHOQ4TC4YTWRKH35ANCNFSM6AAAAAATUFY3DQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
Phosphorus15 commented
The new plugin was submitted to JetBrains' marketplace for moderation; this issue is marked resolved :P, thanks for the good work @javatlacati