Skip to content

Commit

Permalink
Item9762: Properly document usage of classs attribute in verbatim tags.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@9419 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
IngoKappler authored and IngoKappler committed Sep 29, 2010
1 parent b6d4ec6 commit c14d0e3
Showing 1 changed file with 42 additions and 2 deletions.
44 changes: 42 additions & 2 deletions core/data/System/EditingShorthand.txt
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ _this does not _
%T% =verbatim= tags disable HTML code. Use =<pre>= and =</pre>= tags instead if you want the HTML code within the tags to be interpreted.%BR% %BR%
%X% Preferences settings (* Set NAME = value) are set within verbatim tags.
</td><td>
<verbatim class="java">
<verbatim>
<verbatim>
class CatAnimal {
void purr() {
Expand All @@ -155,12 +155,52 @@ class CatAnimal {
</verbatim>
</verbatim>
</td><td>
<verbatim class="java">
<verbatim>
class CatAnimal {
void purr() {
<code here>
}
}
</verbatim>
</td>
</tr>
<tr valign="top">
<td>
*Verbatim (Literal) Code Highlighting:* %BR%
Surround code excerpts and other formatted text e.g. with =&lt;verbatim class="bash"&gt;= and =&lt;/verbatim&gt;= tags.%BR% %BR%
%I% This type of code highlighting is based on Chili - the jQuery code highlighter plugin. Please find supported class attributes in %BASEWEB%.JQueryChili.%BR% %BR%
%T% =verbatim= tags disable HTML code. Use =&lt;pre class="bash"&gt;= and =&lt;/pre&gt;= tags instead if you want the HTML code within the tags to be interpreted.%BR% %BR%
%X% Preferences settings (* Set NAME = value) are set within verbatim tags.
</td><td>
<verbatim>
<verbatim class="bash">
#!/bin/bash
while [ -n "$(ls . ~/ \
~/pub* /var/www 2>/dev/null \
| fgrep foswiki )" ] ; do
clear
printf "\nFoswiki rules!\n"
sleep 10
clear
printf "\nFoswiki still rules!\n"
sleep 10
done; exit 0
</verbatim>
</verbatim>
</td><td>
<verbatim class="bash">
#!/bin/bash
while [ -n "$(ls . ~/ \
~/pub* /var/www 2>/dev/null \
| fgrep foswiki )" ] ; do
clear
printf "\nFoswiki rules!\n"
sleep 10
clear
printf "\nFoswiki still rules!\n"
sleep 10
done; exit 0

</verbatim>
</td>
</tr>
Expand Down

0 comments on commit c14d0e3

Please sign in to comment.