IToken string = colorProvider.getToken(HTMLPlugin.PREF_COLOR_JSSTRING);
IToken comment = colorProvider.getToken(HTMLPlugin.PREF_COLOR_JSCOMMENT);
IToken keyword = colorProvider.getToken(HTMLPlugin.PREF_COLOR_JSKEYWORD);
List<IRule> rules = new ArrayList<IRule>();
rules.add(new SingleLineRule("\"", "\"", string, '\\'));
rules.add(new SingleLineRule("'", "'", string, '\\'));
rules.add(new EndOfLineRule("//", comment));
WordRule wordRule = new WordRule(new JavaWordDetector(), normal);
for(int i=0;i<KEYWORDS.length;i++){
wordRule.addWord(KEYWORDS[i], keyword);