Difference between revisions of "Template talk:Code"

From Amahi Wiki
Jump to: navigation, search
Line 20: Line 20:
 
}}
 
}}
 
----
 
----
 +
{|class="wikitable" style="width: 100%"
 +
! Description
 +
! width=40% | You type
 +
! width=40% | You get
 +
|-
 +
|boxed code
 +
|<pre>
 +
{{Code|bash$ ls -l
 +
total 696
 +
...
 +
bash$
 +
}}
 +
</pre>
 +
|{{Code|bash$ ls -l
 +
total 696
 +
...
 +
bash$
 +
}}
 +
|}

Revision as of 20:13, 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$ ​

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