public CodeColorizers() {
this(Lists.<CodeColorizerFormat>newArrayList());
}
public String toHtml(String code, String language) {
CodeColorizerFormat format = byLang.get(language);
List<Tokenizer> tokenizers;
if (format == null) {
tokenizers = Collections.emptyList();
} else {
tokenizers = format.getTokenizers();
}
return new CodeColorizer(tokenizers).toHtml(new StringReader(code), HtmlOptions.ONLY_SYNTAX);
}