pavement

Template:Code

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
m
(problem workaround)
Line 3: Line 3:
 
Usage:
 
Usage:
  
Indicates code text. For use within paragraphs. Template isn't functional with use of pipes "|" and other special characters.
+
Indicates code text. For use within paragraphs. Template isn't functional with use of pipes "|" and other special characters. <nowiki>nowiki tags</nowiki> may be used to suppress the pipe function.
  
  
Example:
+
Examples:
  
<nowiki>{{code|kldstat}}</nowiki> produces {{code|kldstat}}
+
''<nowiki>{{code|kldstat -v}}</nowiki>'' produces {{code|kldstat -v}}.
  
 +
''<nowiki>{{code|ls /etc/rc.conf </nowiki><nowiki><nowiki> | </nowiki></nowiki><nowiki> grep ifconfig}}</nowiki>'' produces {{code|ls /etc/rc.conf <nowiki>|</nowiki> grep ifconfig}}
 
</noinclude>
 
</noinclude>
 +
 +
<!--<nowiki><nowiki> | </nowiki></nowiki> this many is needed. First suppress the pipe, then to show the instruction to the reader-->

Revision as of 00:45, 30 October 2015

{{{1}}}

Usage:

Indicates code text. For use within paragraphs. Template isn't functional with use of pipes "|" and other special characters. nowiki tags may be used to suppress the pipe function.


Examples:

{{code|kldstat -v}} produces kldstat -v.

{{code|ls /etc/rc.conf <nowiki> | </nowiki> grep ifconfig}} produces ls /etc/rc.conf | grep ifconfig


Personal tools