Difference between revisions of "Wikitext code"
Jump to navigation
Jump to search
(Imported from Wikispaces) |
(Imported from Wikispaces) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | [[ | + | |
+ | ====== wikitext code ====== | ||
+ | \\ \\ Wikispaces supports color-highlighted source code blocks using <syntaxhighlight> tags. This is part of [[/wikitext| wikitext]]. For example:\\ \\ "<syntaxhighlight lang=php>"\\ "<?php"\\ "'' hello world"\\ "''"\\ "echo "hello world";"\\ "exit();"\\ "?>"\\ "</syntaxhighlight>"\\ \\ will render as:\\ \\ | ||
+ | <?php | ||
+ | // hello world | ||
+ | // | ||
+ | echo "hello world"; | ||
+ | exit(); | ||
+ | ?> | ||
+ | **Note** that both </syntaxhighlight> tags must be on a line by themselves without leading spaces.\\ \\ The following languages are supported:\\ \\ | ||
− | + | * actionscript | |
− | + | * ada | |
− | + | * apache (Apache configuration files) | |
− | + | * applescript | |
− | + | * asm (x86 Assembler) | |
− | + | * asp (Active Server Pages) | |
− | + | * autoit (AutoIt Window automation script) | |
− | + | * bash (Bourne Again Shell) | |
− | + | * blitzbasic | |
− | + | * bnf (BNF: Backus-Naur form) | |
− | + | * c | |
− | + | * cfdg (Context-Free Design Grammar) | |
− | + | * cfm (Coldfusion) | |
− | + | * cpp (C++) | |
− | + | * csharp (C#) | |
− | + | * css (Cascading Style Sheets) | |
− | + | * delphi (Delphi Object Pascal) | |
− | + | * diff | |
− | + | * div | |
− | + | * dos | |
− | + | * d (D programming language) | |
− | + | * eiffel | |
− | + | * freebasic | |
− | + | * fortran | |
− | + | * gml (Game Maker Language) | |
− | * actionscript | + | * groovy |
− | * ada | + | * html4strict |
− | * apache (Apache configuration files) | + | * idl (Uno IDL) |
− | * applescript | + | * ini |
− | * asm (x86 Assembler) | + | * inno (Inno Script Object Pascal) |
− | * asp (Active Server Pages) | + | * io |
− | * autoit (AutoIt Window automation script) | + | * java |
− | * bash (Bourne Again Shell) | + | * java5 (Java programming language, version 5 syntax) |
− | * blitzbasic | + | * javascript |
− | * bnf (BNF: Backus-Naur form) | + | * latex |
− | * c | + | * lisp |
− | * cfdg (Context-Free Design Grammar) | + | * matlab |
− | * cfm (Coldfusion) | + | * mirc |
− | * cpp (C++) | + | * mysql (MySQL-specific SQL) |
− | * csharp (C#) | + | * oracle8 (Oracle-specific SQL) |
− | * css (Cascading Style Sheets) | + | * ocaml (Objective Caml) |
− | * delphi (Delphi Object Pascal) | + | * pascal |
− | * diff | + | * perl |
− | * div | + | * php |
− | * dos | + | * python |
− | * d (D programming language) | + | * qbasic |
− | * eiffel | + | * reg (Microsoft Registry) |
− | * freebasic | + | * robots (Robots.txt) |
− | * fortran | + | * ruby |
− | * gml (Game Maker Language) | + | * sas |
− | * groovy | + | * scheme |
− | * html4strict | + | * sdlbasic |
− | * idl (Uno IDL) | + | * smalltalk |
− | * ini | + | * smarty (Smarty PHP template language) |
− | * inno (Inno Script Object Pascal) | + | * sql |
− | * io | + | * tcl |
− | * java | + | * text (No highlighting) |
− | * java5 (Java programming language, version 5 syntax) | + | * thinbasic |
− | * javascript | + | * tsql (Transact-SQL) |
− | * latex | + | * vb (Visual Basic) |
− | * lisp | + | * vbnet (Visual Basic .NET) |
− | * matlab | + | * vhdl (VHSICADL, very high speed integrated circuit HDL) |
− | * mirc | + | * visualfoxpro |
− | * mysql (MySQL-specific SQL) | + | * winbatch (Windows Batch Scripting) |
− | * oracle8 (Oracle-specific SQL) | + | * xml |
− | * ocaml (Objective Caml) | ||
− | * pascal | ||
− | * perl | ||
− | * php | ||
− | * python | ||
− | * qbasic | ||
− | * reg (Microsoft Registry) | ||
− | * robots (Robots.txt) | ||
− | * ruby | ||
− | * sas | ||
− | * scheme | ||
− | * sdlbasic | ||
− | * smalltalk | ||
− | * smarty (Smarty PHP template language) | ||
− | * sql | ||
− | * tcl | ||
− | * text (No highlighting) | ||
− | * thinbasic | ||
− | * tsql (Transact-SQL) | ||
− | * vb (Visual Basic) | ||
− | * vbnet (Visual Basic .NET) | ||
− | * vhdl (VHSICADL, very high speed integrated circuit HDL) | ||
− | * visualfoxpro | ||
− | * winbatch (Windows Batch Scripting) | ||
− | * xml |
Latest revision as of 14:29, 14 February 2019
wikitext code
\\ \\ Wikispaces supports color-highlighted source code blocks using <syntaxhighlight> tags. This is part of wikitext. For example:\\ \\ "<syntaxhighlight lang=php>"\\ "<?php"\\ " hello world"\\ ""\\ "echo "hello world";"\\ "exit();"\\ "?>"\\ "</syntaxhighlight>"\\ \\ will render as:\\ \\
<?php // hello world // echo "hello world"; exit(); ?>
- Note** that both </syntaxhighlight> tags must be on a line by themselves without leading spaces.\\ \\ The following languages are supported:\\ \\
* actionscript * ada * apache (Apache configuration files) * applescript * asm (x86 Assembler) * asp (Active Server Pages) * autoit (AutoIt Window automation script) * bash (Bourne Again Shell) * blitzbasic * bnf (BNF: Backus-Naur form) * c * cfdg (Context-Free Design Grammar) * cfm (Coldfusion) * cpp (C++) * csharp (C#) * css (Cascading Style Sheets) * delphi (Delphi Object Pascal) * diff * div * dos * d (D programming language) * eiffel * freebasic * fortran * gml (Game Maker Language) * groovy * html4strict * idl (Uno IDL) * ini * inno (Inno Script Object Pascal) * io * java * java5 (Java programming language, version 5 syntax) * javascript * latex * lisp * matlab * mirc * mysql (MySQL-specific SQL) * oracle8 (Oracle-specific SQL) * ocaml (Objective Caml) * pascal * perl * php * python * qbasic * reg (Microsoft Registry) * robots (Robots.txt) * ruby * sas * scheme * sdlbasic * smalltalk * smarty (Smarty PHP template language) * sql * tcl * text (No highlighting) * thinbasic * tsql (Transact-SQL) * vb (Visual Basic) * vbnet (Visual Basic .NET) * vhdl (VHSICADL, very high speed integrated circuit HDL) * visualfoxpro * winbatch (Windows Batch Scripting) * xml