Difference between revisions of "Help:Style Guide"

From WebOS Internals
Jump to navigation Jump to search
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 with full syntax highlighting (if you don't want it to syntax highlight use "text"). Remove the spaces out of it of course (it is not possible to not parse it).
+
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">
< source lang="text" >
 
 
Code or Text
 
Code or Text
< /source >
 
 
</source>
 
</source>
 +
</pre>
  
 
== Application Pages (Application:Name) ==
 
== Application Pages (Application:Name) ==

Revision as of 14: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">

« Go Back to the Games - Use the main list's names application list
x270px

Name - Name of the Application - 1.0.0 - Version major.minor.build

description - Describe the app in full detail, put anything you want.

</source>