|
|}
== <code><code></code> element ==
Code tags are used for single lines of script only:<br><br>
<code><code></code><code>[root@node0-mraid14 /fse]# dd if=/dev/lun2 | od -c |less</code><code> </code></code>
<br><br>
== <code><pre></code> element ==
Pre tags do not automatically shrink to fit their contents, use the class "inline" for auto fitting, this uses "display: inline-block" in the css:<br><br>
<code><pre class="inline"></code>
<pre class="inline">
[root@node0-FS8600 /fse]# system-status
General System Status
-- Section ---- Section ---- Section ---- Section ---- Section ---- Section ---- Section ---- Section ---- Section ---- Section ----
expected status is ON
File system is up
Health Status
-- Section ---- Section ---- Section ---- Section ---- Section ---- Section ---- Section ---- Section ---- Section ---- Section ----
system health ok
[root@node0-FS8600 /fse]#
</pre>
<code></pre></code>
<br/><br/>
== <code><pre></code> element (with set-width) ==
In order to show the scroll bars on a pre element it is necessary to use the class "scroll" and it maybe necessary to statically set the '''width''':<br><br>
<code><pre class="scroll" style="width: 500px;"></code>
<pre class="scroll" style="width: 500px;">
<FluidFS> CLI > system authentication user-database set ldap -ldap_host ldap.furryyoghurt.com -ldap_base_dn "dc=exanet,dc=local"
<FluidFS> CLI >
</pre>
<code></pre></code>
<br><br>
== <code><syntax-highlight lang="bash"></code> element ==
The syntaxhighlight tag requires the programming language to be specified in this case '''bash''':<br><br>
<code><syntaxhighlight lang="bash" class="inline"></code>
<syntaxhighlight lang="bash" class="inline">
#!/bin/bash
fileCount=800000
b=0
while [ $b -le $fileCount ]
do
echo B = $b
dd if=/dev/urandom of=/mnt/nfs/file$b.txt bs=2k count=1
((b++))
done
</syntaxhighlight>
<code></syntaxhighlight></code>
<br/><br/>
* For more details on usage, see the [http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi Mediawiki SyntaxHighlight Extension]
<br><br>
----
<br><br>
If a programming language is not used the language can be specified as '''text''', also the highlight attribute can be set to highlight lines of code:<br><br>
|