Difference between revisions of "Help:Style Guide"
Jump to navigation
Jump to search
Templarian (talk | contribs) m (correction) |
(→Code Blocks: "it is not possible to not parse it" o rly?) |
||
Line 41: | Line 41: | ||
== Code Blocks == | == Code Blocks == | ||
− | To format code use the tag | + | To format code, use the source tag, which provides full syntax highlighting. Specify the language with the lang attribute, or if you don't want it to highlight syntax, use "text". |
− | "python", "text", "javascript" are the main ones but all languages are supported. | + | "python", "text", and "javascript" are the main ones, but [http://mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi#Supported_languages all major languages] are supported. |
+ | <pre> | ||
<source lang="text"> | <source lang="text"> | ||
− | |||
Code or Text | Code or Text | ||
− | |||
</source> | </source> | ||
+ | </pre> | ||
== Application Pages (Application:Name) == | == Application Pages (Application:Name) == |
Revision as of 13:06, 20 July 2009
One Column
<source lang="text">
Some text
</source>
Two Columns
<source lang="text">
some content |
some other content |
</source>
Three Columns
<source lang="text">
some content |
some other content |
some other content |
</source>
Code Blocks
To format code, use the source tag, which provides full syntax highlighting. Specify the language with the lang attribute, or if you don't want it to highlight syntax, use "text".
"python", "text", and "javascript" are the main ones, but all major languages are supported.
<source lang="text"> Code or Text </source>
Application Pages (Application:Name)
<source lang="text">
Name - Name of the Application - 1.0.0 - Version major.minor.build
description - Describe the app in full detail, put anything you want.
</source>