Hi

Is it possible to Hightlight more than one terms with highlighter but with different style for each term ??

1st term with SimpleHTMLFormatter("<span class=\"highlight1\">", "</span>");
2rd term with SimpleHTMLFormatter("<span class=\"highlight2\">", "</span>");
......
n-th term  with SimpleHTMLFormatter("<span class=\"highlightn\">", "</span>");

or  for foloween code

 SimpleHTMLFormatter formatter =
new SimpleHTMLFormatter("<span class=\"highlight\">", "</span>");
            Highlighter highlighter = new Highlighter(formatter, scorer);

to use something like this:

SimpleHTMLFormatter [] formatters = {new SimpleHTMLFormatter("<span class=\"highlight1\">", "</span>"), new SimpleHTMLFormatter("<span class=\"highlight\">","</span>"),
                                                             ................
new SimpleHTMLFormatter("<span class=\"highlight\">", "</span>") }

Highlighter highlighter = new Highlighter(formatters, scorer);

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to