Difference between revisions of "Template talk:Code"

From Amahi Wiki
Jump to: navigation, search
Line 29: Line 29:
 
|
 
|
 
<pre>
 
<pre>
{{Code|bash$ ls -l
+
{{Code|Lang = bash |
 +
Code = bash$ ls -l
 
total 696
 
total 696
 
...
 
...
Line 37: Line 38:
 
|
 
|
 
{|
 
{|
{{Code|bash$ ls -l
+
{{Code|Lang = bash |
 +
Code = bash$ ls -l
 
total 696
 
total 696
 
...
 
...

Revision as of 01:10, 6 February 2011


Code Formatting

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

Description You type You get
boxed code
{{Code|Lang = bash |
Code = bash$ ls -l
total 696
...
bash$ 
}}
bash code
​bash$ ls -l total 696 ... bash$​