此内容没有您所选择的语言版本。
Chapter 17. Seam Text
Collaboration-oriented websites require a human-friendly markup language so that formatted text can be entered easily in forum posts, wiki pages, blogs, comments, etc. Seam provides the
<s:formattedText/>
control to display formatted text that conforms to the Seam Text language. Seam Text is implemented with an ANTLR-based parser. (Experience with ANTLR is not required.)
17.1. Basic formatting 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
Here is a simple example:
It's easy to make *emphasized*, |monospaced|, ~deleted~, super^scripted^ or _underlined_ text.
If we display this using
<s:formattedText/>
, the following HTML will be produced:
<p> It's easy to make <i>emphasized</i>, <tt>monospaced</tt>, <del>deleted</del>, super<sup>scripted</sup> or <u>underlined</u> text. </p>
<p>
It's easy to make <i>emphasized</i>, <tt>monospaced</tt>,
<del>deleted</del>, super<sup>scripted</sup> or
<u>underlined</u> text.
</p>
We can use a blank line to indicate a new paragraph, and
+
to indicate a heading:
A simple new line is ignored — you need an additional blank line to wrap text into a new paragraph. This is the HTML that results:
The
#
character creates items in an ordered list. Unordered lists use the =
character:
Quoted sections should be surrounded in double quotes: