Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/tooling/org.eclipse.fx.ide.l10n.ui/src/org/eclipse/fx/ide/l10n/ui/highlighting/NLSHighlightingConfiguration.xtend')
-rw-r--r--bundles/tooling/org.eclipse.fx.ide.l10n.ui/src/org/eclipse/fx/ide/l10n/ui/highlighting/NLSHighlightingConfiguration.xtend22
1 files changed, 22 insertions, 0 deletions
diff --git a/bundles/tooling/org.eclipse.fx.ide.l10n.ui/src/org/eclipse/fx/ide/l10n/ui/highlighting/NLSHighlightingConfiguration.xtend b/bundles/tooling/org.eclipse.fx.ide.l10n.ui/src/org/eclipse/fx/ide/l10n/ui/highlighting/NLSHighlightingConfiguration.xtend
new file mode 100644
index 000000000..a9551bcf4
--- /dev/null
+++ b/bundles/tooling/org.eclipse.fx.ide.l10n.ui/src/org/eclipse/fx/ide/l10n/ui/highlighting/NLSHighlightingConfiguration.xtend
@@ -0,0 +1,22 @@
+package org.eclipse.fx.ide.l10n.ui.highlighting
+
+import org.eclipse.xtext.ui.editor.syntaxcoloring.DefaultHighlightingConfiguration
+import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfigurationAcceptor
+import org.eclipse.swt.graphics.RGB
+
+class NLSHighlightingConfiguration extends DefaultHighlightingConfiguration {
+ public static final String RICH_TEXT_ID = "nls.richText";
+ public static final String RICH_TEXT_VAR_ID = "nls.richTextVar";
+
+ override configure(IHighlightingConfigurationAcceptor acceptor) {
+ acceptor.acceptDefaultHighlighting(RICH_TEXT_ID, "Template Text", stringTextStyle());
+ acceptor.acceptDefaultHighlighting(RICH_TEXT_VAR_ID, "Template Text", richTextVarStyle());
+ }
+
+ def richTextVarStyle() {
+ val textStyle = defaultTextStyle().copy();
+ textStyle.color = new RGB(127, 0, 85);
+ return textStyle;
+ }
+
+} \ No newline at end of file

Back to the top