Highlight taglib ver. 1.6

    Custom JSP taglib. Body tag highlighter lets you highlight (mark, pick out) some text in the own body. For example:
 


<%@ taglib uri="taglib.tld" prefix="h" %>

<h:highlighter text="Java" style="color:yellow;background:blue">
  C++, C#, Java, Basic
</h:highlighter>

and you will get some like this:

C++, C#, Java, Basic

One parameter (text) is mandatory and describes selected pattern. Also you have to provide CSS style or CSS class name for selection.

Tags are:

highlighter

Body tag highlights some text within own body. Parameters are:

1) text describes pattern for selection
2) caseSensitive Optional parameter. Possible values are true or false. If this value is true than search will be case sensitive. Default value is true
3) style Optional parameter. Describes a CSS style
4) className Optional parameter. Describes a CSS class name
5) cond Optional parameter. Describes a boolean value tag's behavior depends on. Default value is true (highlight)

for downloading:

Library: highlight.jar    Description: taglib.tld

© Coldbeans      Comments?

See also Coldtags suite - the largest collection of custom JSP tags.

Also in Coldtags: