Difference between revisions of "Template talk:Code"

From Amahi Wiki
Jump to: navigation, search
Line 2: Line 2:
 
= Code Formatting =
 
= Code Formatting =
  
To add formatting to code, we have a little [[Template:Code code template]] that can be used like this:
+
To add formatting to code, we have a little [[Template:Code|code template]] that can be used like this:
  
 
<pre>
 
<pre>

Revision as of 13:11, 2 January 2011


Code Formatting

To add formatting to code, we have a little code template that can be used like this:

{{Code|bash$ ls -l
total 696
...
bash$ 
}}

Which should look like this:

bash code
​bash$ ls -l total 696 ... bash$ ​