Template:Code

From Audacity Wiki
Revision as of 14:21, 17 July 2007 by Suf (talk | contribs) (Possible new template for code snippets)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Template:Wip


The Menu Code can be used to format a string of text in a consistent way across the Wiki with a background and foreground colour which will make it stand out amongst surrounding text. It should be used only for code snippets (either in programs or in scripts). (Other templates may become available for other uses, see Templates.)


Usage of Template Code:

{{code:text to be formatted}}

For example, typing this:

See e.g. line 123: {{code:foreach($pics as $p)}}.

will cause the following to be displayed:

See e.g. line 123: foreach($pics as $p)



Ignore the following, it's only a representation of formatting and a parameter dummy.

{{{1}}}