Difference between revisions of "Wikitext code"

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

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