Changes

210 bytes added ,  17:53, 1 August 2012
no edit summary
Line 2: Line 2:     
==Usage==
 
==Usage==
 +
'''Good for short code segments:'''
 +
:{{Code|<nowiki>{{Code|code line}}</nowiki>}}
   −
{{Code|<nowiki>{{Code|code line}}</nowiki>}}
     −
{{Code|This is a long line of code that may have many words that continue for a long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long length.}}
+
'''Not so good for longer segments:'''
 +
:{{Code|This is a long line of code that may have many words that continue for a long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long length.}}
    
Used to highlight code samples in an enlarged (through the site's main.css), monospace typeface that is easier to read than the default.
 
Used to highlight code samples in an enlarged (through the site's main.css), monospace typeface that is easier to read than the default.
    
The template form is shorter and easier to enter while editing.
 
The template form is shorter and easier to enter while editing.
 +
----
 +
{{Highlight|bgcolor=yellow|'''Note''': This template is not suitable for blocks of code.}}
 +
 +
* Instead, see the technique below:
    
==For code blocks==
 
==For code blocks==