sunlabs.brazil.template
public class HighlightTemplate extends Template implements Serializable
Properties. These are recomputed for every page that
highlight changes.
tag and options are
ignored. The default is:
<${tag} ${options}>&</${tag}>
The format of the string is a regular expression
substitution string, which supports ${} style
variable substitutions from the request properties.
highlight tags. If set
no highlighting will take place until an actual
highlight tag is present.
The following html tags are processed:
highlight tag.
In the current implementation, highlight and
nohighlight don't nest.
Version: 2.1 HighlightTemplate.java %V% 0
| Method Summary | |
|---|---|
| boolean | init(RewriteContext hr)
This gets called at every page, at the beginning. |
| void | string(RewriteContext hr)
Gets all text between tags - highlighting it appropriately.
|
| void | tag_head(RewriteContext hr)
Don't do highlight inside the following sections |
| void | tag_highlight(RewriteContext hr)
The special entities highlight and
nohighlight
may be used to turn highlighting on or off in certain areas. |
| void | tag_nohighlight(RewriteContext hr) |
| void | tag_script(RewriteContext hr) |
| void | tag_server(RewriteContext hr) |
| void | tag_slash_head(RewriteContext hr) |
| void | tag_slash_highlight(RewriteContext hr) |
| void | tag_slash_nohighlight(RewriteContext hr) |
| void | tag_slash_script(RewriteContext hr) |
| void | tag_slash_server(RewriteContext hr) |
| void | tag_slash_style(RewriteContext hr) |
| void | tag_style(RewriteContext hr) |
highlight and
nohighlight
may be used to turn highlighting on or off in certain areas.