Difference between revisions of "Help:Style Guide"

From WebOS Internals
Jump to navigation Jump to search
m
m
Line 37: Line 37:
 
some other content
 
some other content
 
}}
 
}}
 +
</source>
 +
 +
== 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).
 +
 +
"python", "text", "javascript" are the main ones but all languages are supported.
 +
 +
<source lang="text">
 +
< source lang="text" >
 +
Code or Text
 +
< /source >
 
</source>
 
</source>
  

Revision as of 03:16, 20 July 2009

One Column

<source lang="text"> Template:Article-one-column </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 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).

"python", "text", "javascript" are the main ones but all languages are supported.

<source lang="text"> < source lang="text" > Code or Text < /source > </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 - {{{version}}}

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

</source>