Difference between revisions of "MediaWiki:Copyrightwarning"

From CodeCodex

m (syntax highlighting helper)
(made this a bit shorter)
Line 1: Line 1:
__NOTOC__
+
----
===Syntax Highlighting===
+
<span style="color:#000066">'''Syntax Highlighting'''</span><br/>
To markup your code add a '''<nowiki><highlightsyntax></nowiki>''' tag before your code and '''<nowiki></highlightsyntax></nowiki>''' after.  To render a specific language, change the opening tag to '''<nowiki><highlightsyntax language="language"></nowiki>''' where 'language' is one of the available languages.
+
To markup your code add a '''<nowiki><highlightsyntax></nowiki>''' tag before your code and '''<nowiki></highlightsyntax></nowiki>''' after.  To render a specific language, change the opening tag to '''<nowiki><highlightsyntax language="language"></nowiki>''' where 'language' is one of the [[CodeCodex:Syntax Highlighting|available languages]]. See [[CodeCodex:Syntax Highlighting]] for more information.<br/>
 
+
----
====Languages====
+
<span style="color:#000066">'''Copyright Notice'''</span><br/>
Below is some of the common languages available for specific syntax highlighting, for a full list, see [http://www.beautifier.org/php/langs/ this list].
+
* ada95
+
* '''c'''
+
* cobol
+
* '''cpp'''  (C++)
+
* cppheader
+
* cppsource
+
* csharp (C#)
+
* css
+
* delphi
+
* dosbatch
+
* fortran90
+
* haskell
+
* html
+
* htmlphpsql
+
* '''java122''' (written for 1.22, but works fine for newer versions of Java)
+
* '''javascript'''
+
* matlab5
+
* maya
+
* mysql
+
* '''ocaml'''
+
* pascal
+
* '''perl'''
+
* php3
+
* phphtml
+
* python
+
* '''qbasic'''
+
* rexx
+
* scheme
+
* tcltk
+
* '''vb'''
+
* xhtml10
+
* xhtml11
+
* xhtmlbasic
+
* xml
+
* xsl
+
 
+
====Example====
+
<nowiki><highlightsyntax language="java122"> for (int i = 0 ; i <= 10 ; i++) { System.println.out(i); } //counting is fun!</highlightsyntax></nowiki>
+
<HIGHLIGHTSYNTAX language="java122"> for (int i = 0 ; i <= 10 ; i++) { System.println.out(i); } //counting is fun!</HIGHLIGHTSYNTAX>
+
 
+
===Copyright Notice===
+
 
<strong>DO NOT SUBMIT COPYRIGHTED WORK WITHOUT PERMISSION!</strong><br/><br/>
 
<strong>DO NOT SUBMIT COPYRIGHTED WORK WITHOUT PERMISSION!</strong><br/><br/>
 
Please note that all contributions to CodeCodex are considered to be released under the terms of the GNU Free Documentation License (see [[CodeCodex:Copyrights]] for details). If you don't want your code to be edited mercilessly and redistributed at will, then don't submit it here.<br /><br/>
 
Please note that all contributions to CodeCodex are considered to be released under the terms of the GNU Free Documentation License (see [[CodeCodex:Copyrights]] for details). If you don't want your code to be edited mercilessly and redistributed at will, then don't submit it here.<br /><br/>
 
You are also promising us that you wrote this code yourself, or copied it from a public domain or similar free resource.
 
You are also promising us that you wrote this code yourself, or copied it from a public domain or similar free resource.
 +
----

Revision as of 18:03, 18 February 2007


Syntax Highlighting
To markup your code add a <highlightsyntax> tag before your code and </highlightsyntax> after. To render a specific language, change the opening tag to <highlightsyntax language="language"> where 'language' is one of the available languages. See CodeCodex:Syntax Highlighting for more information.


Copyright Notice
DO NOT SUBMIT COPYRIGHTED WORK WITHOUT PERMISSION!

Please note that all contributions to CodeCodex are considered to be released under the terms of the GNU Free Documentation License (see CodeCodex:Copyrights for details). If you don't want your code to be edited mercilessly and redistributed at will, then don't submit it here.

You are also promising us that you wrote this code yourself, or copied it from a public domain or similar free resource.