use of org.eclipse.jface.text.rules.RuleBasedScanner in project syncope by apache.
the class HTMLSourceConfiguration method getDirectiveScanner.
protected RuleBasedScanner getDirectiveScanner() {
if (directiveScanner == null) {
directiveScanner = new RuleBasedScanner();
RGB rgb = IHTMLColorConstants.SCRIPT;
Color color = new Color(Display.getCurrent(), rgb);
directiveScanner.setDefaultReturnToken(new Token(new TextAttribute(color)));
}
return directiveScanner;
}
use of org.eclipse.jface.text.rules.RuleBasedScanner in project syncope by apache.
the class HTMLSourceConfiguration method getCommentScanner.
protected RuleBasedScanner getCommentScanner() {
if (commentScanner == null) {
commentScanner = new RuleBasedScanner();
RGB rgb = IHTMLColorConstants.HTML_COMMENT;
Color color = new Color(Display.getCurrent(), rgb);
commentScanner.setDefaultReturnToken(new Token(new TextAttribute(color)));
}
return commentScanner;
}
Aggregations