IToken attributeName = colorProvider.getToken(HTMLPlugin.PREF_COLOR_ATTRIBUTE);
IToken ognlBinding = colorProvider.getToken(HTMLPlugin.PREF_COLOR_OGNL);
IToken dynamicBinding = colorProvider.getToken(HTMLPlugin.PREF_COLOR_DYNAMIC);
IRule[] rules = new IRule[] {
new MultiLineRule("\"~" , "\"" , ognlBinding, '\\'),
new MultiLineRule("\'~" , "\'" , ognlBinding, '\\'),
new MultiLineRule("\"$" , "\"" , dynamicBinding, '\\'),
new MultiLineRule("\'$" , "\'" , dynamicBinding, '\\'),
new MultiLineRule("\"[" , "]\"" , dynamicBinding, '\\'),
new MultiLineRule("\'[" , "]\'" , dynamicBinding, '\\'),
new MultiLineRule("\"" , "\"" , literal, '\\'),
new MultiLineRule("'" , "'" , literal, '\\'),
new WhitespaceRule(new HTMLWhitespaceDetector()),
new HTMLTagNameRule(tagName, woTagName),
new HTMLAttributeNameRule(attributeName)
};