Code

Tags: _syntax

Basics

[[code]] is used to display the code of a wiki page or of a programmiing language.
[[code type="php"]] allows you to highlight your PHP code. Wikidot uses PEAR::Text_Highlighter.
Current supported languages are Cpp, CSS, diff, HTML, Java, JavaScript, Perl, PHP, Python, Ruby, SQL, XML.

Tip

Enclose your block of html code between [!-- and --] before iframing it.1

Related HowTos:

Main reference

Ask your question below

Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.