Search in sources :

Example 1 with TextStyle

use of org.eclipse.xtext.ui.editor.utils.TextStyle in project xtext-xtend by eclipse.

the class XtendHighlightingConfiguration method richTextStyle.

public TextStyle richTextStyle() {
    TextStyle textStyle = stringTextStyle().copy();
    textStyle.setBackgroundColor(new RGB(220, 220, 220));
    return textStyle;
}
Also used : TextStyle(org.eclipse.xtext.ui.editor.utils.TextStyle) RGB(org.eclipse.swt.graphics.RGB)

Example 2 with TextStyle

use of org.eclipse.xtext.ui.editor.utils.TextStyle in project coffeescript-eclipse by adamschmideg.

the class LexicalHighlightingConfiguration method regexTextStyle.

public TextStyle regexTextStyle() {
    TextStyle textStyle = defaultTextStyle().copy();
    textStyle.setColor(new RGB(42, 0, 255));
    return textStyle;
}
Also used : TextStyle(org.eclipse.xtext.ui.editor.utils.TextStyle) RGB(org.eclipse.swt.graphics.RGB)

Aggregations

RGB (org.eclipse.swt.graphics.RGB)2 TextStyle (org.eclipse.xtext.ui.editor.utils.TextStyle)2