This extension is based on the work done by Alex Gorbatchev on the syntaxhighlighter project. Refer here for more information on how to embed this extension.
How to use the Syntax extension:
The easiest way to format text using the Syntax extension is to use the Transform menu: create a paragraph using the "formatted" style, paste or write the code you wish to format, then select the appropriate "syntax" transform from the toolbar menu.
Note in some editors the dropdown is not available, in that case you may need to have to apply the transform manually. Toggle to HTML/Source mode, find the <pre> element preceding the content to format, and change it to <pre function="syntax.php"> to apply the "syntax.php" transform function. By default, the contents of the <pre> element are converted into a string and used as the first argument to the function. You can perform additional operations or supply more parameters using <pre function="syntax.php(string.ToUpper($), true)"> where $ refers to the contents of the <pre> element.
Once the transform is applied, the formatted paragraph will indicate that its content is dynamically generated. Save the page. Once the browser reloads, your content will be formatted with the function you selected.
| Vendor | MindTouch |
| Type | Script |
| Categories | Developer |
| Requires | MindTouch Core 9.02 or later |
| Status | Stable |
| License | Free/Open Source |
| Manifest | http://scripts.mindtouch.com/syntax2.xml |
Install Script
Table of Contents
This extension contains functions for highlighting syntax of popular programming languages.
See also How to add a script, Using the Extension Dialog, Learn about DekiScript, Extensions Directory.
The following configuration settings are required to run this script (unless shown as optional).
| Name | Type | Description |
| theme | str | (optional) Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark') |
Highlight ActionScript3 syntax
Parameters:
| Name | Type | Description |
| code | str | source code to highlight |
| collapse | bool | (optional) Allows you to force highlighted elements on the page to be collapsed by default. (default: false) |
| firstline | num | (optional) Allows you to change the first (starting) line number. (default: 1) |
| gutter | bool | (optional) Allows you to turn gutter with line numbers on and off. (default: true) |
| ruler | bool | (optional) Allows you to show column ruler on top of highlighted elements. (default: false) |
| toolbar | bool | (optional) Toggles toolbar on/off. (default: true) |
| wrap | bool | (optional) Allows you to turn line wrapping feature on and off. (default: true) |
| theme | str | (optional) Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config) |
Highlight ColdFusion syntax
Parameters:
| Name | Type | Description |
| code | str | source code to highlight |
| collapse | bool | (optional) Allows you to force highlighted elements on the page to be collapsed by default. (default: false) |
| firstline | num | (optional) Allows you to change the first (starting) line number. (default: 1) |
| gutter | bool | (optional) Allows you to turn gutter with line numbers on and off. (default: true) |
| ruler | bool | (optional) Allows you to show column ruler on top of highlighted elements. (default: false) |
| toolbar | bool | (optional) Toggles toolbar on/off. (default: true) |
| wrap | bool | (optional) Allows you to turn line wrapping feature on and off. (default: true) |
| theme | str | (optional) Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config) |
Highlight C/C++ syntax
Parameters:
| Name | Type | Description |
| code | str | source code to highlight |
| collapse | bool | (optional) Allows you to force highlighted elements on the page to be collapsed by default. (default: false) |
| firstline | num | (optional) Allows you to change the first (starting) line number. (default: 1) |
| gutter | bool | (optional) Allows you to turn gutter with line numbers on and off. (default: true) |
| ruler | bool | (optional) Allows you to show column ruler on top of highlighted elements. (default: false) |
| toolbar | bool | (optional) Toggles toolbar on/off. (default: true) |
| wrap | bool | (optional) Allows you to turn line wrapping feature on and off. (default: true) |
| theme | str | (optional) Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config) |
Highlight C# syntax
Parameters:
| Name | Type | Description |
| code | str | source code to highlight |
| collapse | bool | (optional) Allows you to force highlighted elements on the page to be collapsed by default. (default: false) |
| firstline | num | (optional) Allows you to change the first (starting) line number. (default: 1) |
| gutter | bool | (optional) Allows you to turn gutter with line numbers on and off. (default: true) |
| ruler | bool | (optional) Allows you to show column ruler on top of highlighted elements. (default: false) |
| toolbar | bool | (optional) Toggles toolbar on/off. (default: true) |
| wrap | bool | (optional) Allows you to turn line wrapping feature on and off. (default: true) |
| theme | str | (optional) Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config) |
Highlight CSS syntax
Parameters:
| Name | Type | Description |
| code | str | source code to highlight |
| collapse | bool | (optional) Allows you to force highlighted elements on the page to be collapsed by default. (default: false) |
| firstline | num | (optional) Allows you to change the first (starting) line number. (default: 1) |
| gutter | bool | (optional) Allows you to turn gutter with line numbers on and off. (default: true) |
| ruler | bool | (optional) Allows you to show column ruler on top of highlighted elements. (default: false) |
| toolbar | bool | (optional) Toggles toolbar on/off. (default: true) |
| wrap | bool | (optional) Allows you to turn line wrapping feature on and off. (default: true) |
| theme | str | (optional) Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config) |
Highlight DekiScript syntax
Parameters:
| Name | Type | Description |
| code | str | source code to highlight |
| collapse | bool | (optional) Allows you to force highlighted elements on the page to be collapsed by default. (default: false) |
| firstline | num | (optional) Allows you to change the first (starting) line number. (default: 1) |
| gutter | bool | (optional) Allows you to turn gutter with line numbers on and off. (default: true) |
| ruler | bool | (optional) Allows you to show column ruler on top of highlighted elements. (default: false) |
| toolbar | bool | (optional) Toggles toolbar on/off. (default: true) |
| wrap | bool | (optional) Allows you to turn line wrapping feature on and off. (default: true) |
| theme | str | (optional) Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config) |
Highlight Delphi syntax
Parameters:
| Name | Type | Description |
| code | str | source code to highlight |
| collapse | bool | (optional) Allows you to force highlighted elements on the page to be collapsed by default. (default: false) |
| firstline | num | (optional) Allows you to change the first (starting) line number. (default: 1) |
| gutter | bool | (optional) Allows you to turn gutter with line numbers on and off. (default: true) |
| ruler | bool | (optional) Allows you to show column ruler on top of highlighted elements. (default: false) |
| toolbar | bool | (optional) Toggles toolbar on/off. (default: true) |
| wrap | bool | (optional) Allows you to turn line wrapping feature on and off. (default: true) |
| theme | str | (optional) Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config) |
Highlight Diff syntax
Parameters:
| Name | Type | Description |
| code | str | source code to highlight |
| collapse | bool | (optional) Allows you to force highlighted elements on the page to be collapsed by default. (default: false) |
| firstline | num | (optional) Allows you to change the first (starting) line number. (default: 1) |
| gutter | bool | (optional) Allows you to turn gutter with line numbers on and off. (default: true) |
| ruler | bool | (optional) Allows you to show column ruler on top of highlighted elements. (default: false) |
| toolbar | bool | (optional) Toggles toolbar on/off. (default: true) |
| wrap | bool | (optional) Allows you to turn line wrapping feature on and off. (default: true) |
| theme | str | (optional) Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config) |
Highlight Erlang syntax
Parameters:
| Name | Type | Description |
| code | str | source code to highlight |
| collapse | bool | (optional) Allows you to force highlighted elements on the page to be collapsed by default. (default: false) |
| firstline | num | (optional) Allows you to change the first (starting) line number. (default: 1) |
| gutter | bool | (optional) Allows you to turn gutter with line numbers on and off. (default: true) |
| ruler | bool | (optional) Allows you to show column ruler on top of highlighted elements. (default: false) |
| toolbar | bool | (optional) Toggles toolbar on/off. (default: true) |
| wrap | bool | (optional) Allows you to turn line wrapping feature on and off. (default: true) |
| theme | str | (optional) Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config) |
Highlight Groovy syntax
Parameters:
| Name | Type | Description |
| code | str | source code to highlight |
| collapse | bool | (optional) Allows you to force highlighted elements on the page to be collapsed by default. (default: false) |
| firstline | num | (optional) Allows you to change the first (starting) line number. (default: 1) |
| gutter | bool | (optional) Allows you to turn gutter with line numbers on and off. (default: true) |
| ruler | bool | (optional) Allows you to show column ruler on top of highlighted elements. (default: false) |
| toolbar | bool | (optional) Toggles toolbar on/off. (default: true) |
| wrap | bool | (optional) Allows you to turn line wrapping feature on and off. (default: true) |
| theme | str | (optional) Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config) |
Highlight HTML syntax
Parameters:
| Name | Type | Description |
| code | str | source code to highlight |
| collapse | bool | (optional) Allows you to force highlighted elements on the page to be collapsed by default. (default: false) |
| firstline | num | (optional) Allows you to change the first (starting) line number. (default: 1) |
| gutter | bool | (optional) Allows you to turn gutter with line numbers on and off. (default: true) |
| ruler | bool | (optional) Allows you to show column ruler on top of highlighted elements. (default: false) |
| toolbar | bool | (optional) Toggles toolbar on/off. (default: true) |
| wrap | bool | (optional) Allows you to turn line wrapping feature on and off. (default: true) |
| theme | str | (optional) Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config) |
Highlight Java syntax
Parameters:
| Name | Type | Description |
| code | str | source code to highlight |
| collapse | bool | (optional) Allows you to force highlighted elements on the page to be collapsed by default. (default: false) |
| firstline | num | (optional) Allows you to change the first (starting) line number. (default: 1) |
| gutter | bool | (optional) Allows you to turn gutter with line numbers on and off. (default: true) |
| ruler | bool | (optional) Allows you to show column ruler on top of highlighted elements. (default: false) |
| toolbar | bool | (optional) Toggles toolbar on/off. (default: true) |
| wrap | bool | (optional) Allows you to turn line wrapping feature on and off. (default: true) |
| theme | str | (optional) Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config) |
Highlight JavaFX syntax
Parameters:
| Name | Type | Description |
| code | str | source code to highlight |
| collapse | bool | (optional) Allows you to force highlighted elements on the page to be collapsed by default. (default: false) |
| firstline | num | (optional) Allows you to change the first (starting) line number. (default: 1) |
| gutter | bool | (optional) Allows you to turn gutter with line numbers on and off. (default: true) |
| ruler | bool | (optional) Allows you to show column ruler on top of highlighted elements. (default: false) |
| toolbar | bool | (optional) Toggles toolbar on/off. (default: true) |
| wrap | bool | (optional) Allows you to turn line wrapping feature on and off. (default: true) |
| theme | str | (optional) Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config) |
Highlight JavaScript syntax
Parameters:
| Name | Type | Description |
| code | str | source code to highlight |
| collapse | bool | (optional) Allows you to force highlighted elements on the page to be collapsed by default. (default: false) |
| firstline | num | (optional) Allows you to change the first (starting) line number. (default: 1) |
| gutter | bool | (optional) Allows you to turn gutter with line numbers on and off. (default: true) |
| ruler | bool | (optional) Allows you to show column ruler on top of highlighted elements. (default: false) |
| toolbar | bool | (optional) Toggles toolbar on/off. (default: true) |
| wrap | bool | (optional) Allows you to turn line wrapping feature on and off. (default: true) |
| theme | str | (optional) Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config) |
Highlight Perl syntax
Parameters:
| Name | Type | Description |
| code | str | source code to highlight |
| collapse | bool | (optional) Allows you to force highlighted elements on the page to be collapsed by default. (default: false) |
| firstline | num | (optional) Allows you to change the first (starting) line number. (default: 1) |
| gutter | bool | (optional) Allows you to turn gutter with line numbers on and off. (default: true) |
| ruler | bool | (optional) Allows you to show column ruler on top of highlighted elements. (default: false) |
| toolbar | bool | (optional) Toggles toolbar on/off. (default: true) |
| wrap | bool | (optional) Allows you to turn line wrapping feature on and off. (default: true) |
| theme | str | (optional) Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config) |
Highlight PHP syntax
Parameters:
| Name | Type | Description |
| code | str | source code to highlight |
| collapse | bool | (optional) Allows you to force highlighted elements on the page to be collapsed by default. (default: false) |
| firstline | num | (optional) Allows you to change the first (starting) line number. (default: 1) |
| gutter | bool | (optional) Allows you to turn gutter with line numbers on and off. (default: true) |
| ruler | bool | (optional) Allows you to show column ruler on top of highlighted elements. (default: false) |
| toolbar | bool | (optional) Toggles toolbar on/off. (default: true) |
| wrap | bool | (optional) Allows you to turn line wrapping feature on and off. (default: true) |
| theme | str | (optional) Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config) |
Highlight Powershell syntax
Parameters:
| Name | Type | Description |
| code | str | source code to highlight |
| collapse | bool | (optional) Allows you to force highlighted elements on the page to be collapsed by default. (default: false) |
| firstline | num | (optional) Allows you to change the first (starting) line number. (default: 1) |
| gutter | bool | (optional) Allows you to turn gutter with line numbers on and off. (default: true) |
| ruler | bool | (optional) Allows you to show column ruler on top of highlighted elements. (default: false) |
| toolbar | bool | (optional) Toggles toolbar on/off. (default: true) |
| wrap | bool | (optional) Allows you to turn line wrapping feature on and off. (default: true) |
| theme | str | (optional) Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config) |
Highlight Python syntax
Parameters:
| Name | Type | Description |
| code | str | source code to highlight |
| collapse | bool | (optional) Allows you to force highlighted elements on the page to be collapsed by default. (default: false) |
| firstline | num | (optional) Allows you to change the first (starting) line number. (default: 1) |
| gutter | bool | (optional) Allows you to turn gutter with line numbers on and off. (default: true) |
| ruler | bool | (optional) Allows you to show column ruler on top of highlighted elements. (default: false) |
| toolbar | bool | (optional) Toggles toolbar on/off. (default: true) |
| wrap | bool | (optional) Allows you to turn line wrapping feature on and off. (default: true) |
| theme | str | (optional) Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config) |
Highlight Ruby syntax
Parameters:
| Name | Type | Description |
| code | str | source code to highlight |
| collapse | bool | (optional) Allows you to force highlighted elements on the page to be collapsed by default. (default: false) |
| firstline | num | (optional) Allows you to change the first (starting) line number. (default: 1) |
| gutter | bool | (optional) Allows you to turn gutter with line numbers on and off. (default: true) |
| ruler | bool | (optional) Allows you to show column ruler on top of highlighted elements. (default: false) |
| toolbar | bool | (optional) Toggles toolbar on/off. (default: true) |
| wrap | bool | (optional) Allows you to turn line wrapping feature on and off. (default: true) |
| theme | str | (optional) Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config) |
Highlight Scala syntax
Parameters:
| Name | Type | Description |
| code | str | source code to highlight |
| collapse | bool | (optional) Allows you to force highlighted elements on the page to be collapsed by default. (default: false) |
| firstline | num | (optional) Allows you to change the first (starting) line number. (default: 1) |
| gutter | bool | (optional) Allows you to turn gutter with line numbers on and off. (default: true) |
| ruler | bool | (optional) Allows you to show column ruler on top of highlighted elements. (default: false) |
| toolbar | bool | (optional) Toggles toolbar on/off. (default: true) |
| wrap | bool | (optional) Allows you to turn line wrapping feature on and off. (default: true) |
| theme | str | (optional) Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config) |
Highlight bash/sh/ksh syntax
Parameters:
| Name | Type | Description |
| code | str | source code to highlight |
| collapse | bool | (optional) Allows you to force highlighted elements on the page to be collapsed by default. (default: false) |
| firstline | num | (optional) Allows you to change the first (starting) line number. (default: 1) |
| gutter | bool | (optional) Allows you to turn gutter with line numbers on and off. (default: true) |
| ruler | bool | (optional) Allows you to show column ruler on top of highlighted elements. (default: false) |
| toolbar | bool | (optional) Toggles toolbar on/off. (default: true) |
| wrap | bool | (optional) Allows you to turn line wrapping feature on and off. (default: true) |
| theme | str | (optional) Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config) |
Highlight SQL syntax
Parameters:
| Name | Type | Description |
| code | str | source code to highlight |
| collapse | bool | (optional) Allows you to force highlighted elements on the page to be collapsed by default. (default: false) |
| firstline | num | (optional) Allows you to change the first (starting) line number. (default: 1) |
| gutter | bool | (optional) Allows you to turn gutter with line numbers on and off. (default: true) |
| ruler | bool | (optional) Allows you to show column ruler on top of highlighted elements. (default: false) |
| toolbar | bool | (optional) Toggles toolbar on/off. (default: true) |
| wrap | bool | (optional) Allows you to turn line wrapping feature on and off. (default: true) |
| theme | str | (optional) Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config) |
Show plain text
Parameters:
| Name | Type | Description |
| code | str | source code to highlight |
| collapse | bool | (optional) Allows you to force highlighted elements on the page to be collapsed by default. (default: false) |
| firstline | num | (optional) Allows you to change the first (starting) line number. (default: 1) |
| gutter | bool | (optional) Allows you to turn gutter with line numbers on and off. (default: true) |
| ruler | bool | (optional) Allows you to show column ruler on top of highlighted elements. (default: false) |
| toolbar | bool | (optional) Toggles toolbar on/off. (default: true) |
| wrap | bool | (optional) Allows you to turn line wrapping feature on and off. (default: true) |
| theme | str | (optional) Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config) |
Highlight Visual Basic syntax
Parameters:
| Name | Type | Description |
| code | str | source code to highlight |
| collapse | bool | (optional) Allows you to force highlighted elements on the page to be collapsed by default. (default: false) |
| firstline | num | (optional) Allows you to change the first (starting) line number. (default: 1) |
| gutter | bool | (optional) Allows you to turn gutter with line numbers on and off. (default: true) |
| ruler | bool | (optional) Allows you to show column ruler on top of highlighted elements. (default: false) |
| toolbar | bool | (optional) Toggles toolbar on/off. (default: true) |
| wrap | bool | (optional) Allows you to turn line wrapping feature on and off. (default: true) |
| theme | str | (optional) Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config) |
Highlight XML syntax
Parameters:
| Name | Type | Description |
| code | str | source code to highlight |
| collapse | bool | (optional) Allows you to force highlighted elements on the page to be collapsed by default. (default: false) |
| firstline | num | (optional) Allows you to change the first (starting) line number. (default: 1) |
| gutter | bool | (optional) Allows you to turn gutter with line numbers on and off. (default: true) |
| ruler | bool | (optional) Allows you to show column ruler on top of highlighted elements. (default: false) |
| toolbar | bool | (optional) Toggles toolbar on/off. (default: true) |
| wrap | bool | (optional) Allows you to turn line wrapping feature on and off. (default: true) |
| theme | str | (optional) Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config) |
<extension>
<title>Syntax Highlighter 2.0</title>
<label>Syntax</label>
<copyright>Copyright (c) 2006-2010 MindTouch Inc.</copyright>
<description>This extension contains functions for highlighting syntax of popular programming languages.</description>
<uri.help>http://developer.mindtouch.com/App_Catalog/Syntax_Highlighter_2.0</uri.help>
<namespace>syntax</namespace>
<requires host="MindTouch Core 9.02" />
<config>
<param name="theme" type="str" default="'Default'">Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark')</param>
</config>
<function>
<name>format</name>
<description>Show code using specified syntax formatter.</description>
<access>internal</access>
<param name="code" type="str">source code to highlight</param>
<param name="collapse" type="bool" default="false">Allows you to force highlighted elements on the page to be collapsed by default.</param>
<param name="firstline" type="num" default="1">Allows you to change the first (starting) line number.</param>
<param name="gutter" type="bool" default="true">Allows you to turn gutter with line numbers on and off.</param>
<param name="ruler" type="bool" default="false">Allows you to show column ruler on top of highlighted elements.</param>
<param name="toolbar" type="bool" default="true">Toggles toolbar on/off.</param>
<param name="wrap" type="bool" default="true">Allows you to turn line wrapping feature on and off.</param>
<param name="theme" type="str" optional="true">Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config)</param>
<param name="brush" type="str" default="'Plain'">Select highlighting brush.</param>
<return>
<html xmlns:eval="http://mindtouch.com/2007/dekiscript">
<head>
<link type="text/css" rel="stylesheet" href="self:res/syntax2/shCore.css" />
<link type="text/css" rel="stylesheet" eval:href="'self:res/syntax2/shTheme' .. ($theme ?? config.theme ?? 'Default') .. '.css'" />
<script type="text/javascript" src="self:res/syntax2/shCore.js" />
<script type="text/javascript" eval:src="'self:res/syntax2/shBrush' .. $brush .. '.js'" />
<script type="text/javascript">SyntaxHighlighter.all();</script>
</head>
<body>
<pre eval:class="'brush: $brush; collapse: $collapse; first-line: $firstline; gutter: $gutter; ruler: $ruler; toolbar: $toolbar; wrap-lines: $wrap; ' % {
brush: string.tolower($brush),
collapse: $collapse ? 'true' : 'false',
firstline: $firstline,
gutter: $gutter ? 'true' : 'false',
ruler: $ruler ? 'true' : 'false',
toolbar: $toolbar ? 'true' : 'false',
wrap: $wrap ? 'true' : 'false'
}"><eval:expr value="$code"/></pre>
</body>
</html>
</return>
</function>
<function transform="pre">
<name>as3</name>
<description>Highlight ActionScript3 syntax</description>
<param name="code" type="str">source code to highlight</param>
<param name="collapse" type="bool" default="false">Allows you to force highlighted elements on the page to be collapsed by default.</param>
<param name="firstline" type="num" default="1">Allows you to change the first (starting) line number.</param>
<param name="gutter" type="bool" default="true">Allows you to turn gutter with line numbers on and off.</param>
<param name="ruler" type="bool" default="false">Allows you to show column ruler on top of highlighted elements.</param>
<param name="toolbar" type="bool" default="true">Toggles toolbar on/off.</param>
<param name="wrap" type="bool" default="true">Allows you to turn line wrapping feature on and off.</param>
<param name="theme" type="str" optional="true">Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config)</param>
<return type="xml">format($code, $collapse, $firstline, $gutter, $ruler, $tooblar, $wrap, $theme, 'AS3')</return>
</function>
<function transform="pre">
<name>cpp</name>
<description>Highlight C/C++ syntax</description>
<param name="code" type="str">source code to highlight</param>
<param name="collapse" type="bool" default="false">Allows you to force highlighted elements on the page to be collapsed by default.</param>
<param name="firstline" type="num" default="1">Allows you to change the first (starting) line number.</param>
<param name="gutter" type="bool" default="true">Allows you to turn gutter with line numbers on and off.</param>
<param name="ruler" type="bool" default="false">Allows you to show column ruler on top of highlighted elements.</param>
<param name="toolbar" type="bool" default="true">Toggles toolbar on/off.</param>
<param name="wrap" type="bool" default="true">Allows you to turn line wrapping feature on and off.</param>
<param name="theme" type="str" optional="true">Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config)</param>
<return type="xml">format($code, $collapse, $firstline, $gutter, $ruler, $tooblar, $wrap, $theme, 'Cpp')</return>
</function>
<function transform="pre">
<name>csharp</name>
<description>Highlight C# syntax</description>
<param name="code" type="str">source code to highlight</param>
<param name="collapse" type="bool" default="false">Allows you to force highlighted elements on the page to be collapsed by default.</param>
<param name="firstline" type="num" default="1">Allows you to change the first (starting) line number.</param>
<param name="gutter" type="bool" default="true">Allows you to turn gutter with line numbers on and off.</param>
<param name="ruler" type="bool" default="false">Allows you to show column ruler on top of highlighted elements.</param>
<param name="toolbar" type="bool" default="true">Toggles toolbar on/off.</param>
<param name="wrap" type="bool" default="true">Allows you to turn line wrapping feature on and off.</param>
<param name="theme" type="str" optional="true">Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config)</param>
<return type="xml">format($code, $collapse, $firstline, $gutter, $ruler, $tooblar, $wrap, $theme, 'CSharp')</return>
</function>
<function transform="pre">
<name>css</name>
<description>Highlight CSS syntax</description>
<param name="code" type="str">source code to highlight</param>
<param name="collapse" type="bool" default="false">Allows you to force highlighted elements on the page to be collapsed by default.</param>
<param name="firstline" type="num" default="1">Allows you to change the first (starting) line number.</param>
<param name="gutter" type="bool" default="true">Allows you to turn gutter with line numbers on and off.</param>
<param name="ruler" type="bool" default="false">Allows you to show column ruler on top of highlighted elements.</param>
<param name="toolbar" type="bool" default="true">Toggles toolbar on/off.</param>
<param name="wrap" type="bool" default="true">Allows you to turn line wrapping feature on and off.</param>
<param name="theme" type="str" optional="true">Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config)</param>
<return type="xml">format($code, $collapse, $firstline, $gutter, $ruler, $tooblar, $wrap, $theme, 'Css')</return>
</function>
<function transform="pre">
<name>dekiscript</name>
<description>Highlight DekiScript syntax</description>
<param name="code" type="str">source code to highlight</param>
<param name="collapse" type="bool" default="false">Allows you to force highlighted elements on the page to be collapsed by default.</param>
<param name="firstline" type="num" default="1">Allows you to change the first (starting) line number.</param>
<param name="gutter" type="bool" default="true">Allows you to turn gutter with line numbers on and off.</param>
<param name="ruler" type="bool" default="false">Allows you to show column ruler on top of highlighted elements.</param>
<param name="toolbar" type="bool" default="true">Toggles toolbar on/off.</param>
<param name="wrap" type="bool" default="true">Allows you to turn line wrapping feature on and off.</param>
<param name="theme" type="str" optional="true">Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config)</param>
<return type="xml">format($code, $collapse, $firstline, $gutter, $ruler, $tooblar, $wrap, $theme, 'Dekiscript')</return>
</function>
<function transform="pre">
<name>delphi</name>
<description>Highlight Delphi syntax</description>
<param name="code" type="str">source code to highlight</param>
<param name="collapse" type="bool" default="false">Allows you to force highlighted elements on the page to be collapsed by default.</param>
<param name="firstline" type="num" default="1">Allows you to change the first (starting) line number.</param>
<param name="gutter" type="bool" default="true">Allows you to turn gutter with line numbers on and off.</param>
<param name="ruler" type="bool" default="false">Allows you to show column ruler on top of highlighted elements.</param>
<param name="toolbar" type="bool" default="true">Toggles toolbar on/off.</param>
<param name="wrap" type="bool" default="true">Allows you to turn line wrapping feature on and off.</param>
<param name="theme" type="str" optional="true">Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config)</param>
<return type="xml">format($code, $collapse, $firstline, $gutter, $ruler, $tooblar, $wrap, $theme, 'Delphi')</return>
</function>
<function transform="pre">
<name>diff</name>
<description>Highlight Diff syntax</description>
<param name="code" type="str">source code to highlight</param>
<param name="collapse" type="bool" default="false">Allows you to force highlighted elements on the page to be collapsed by default.</param>
<param name="firstline" type="num" default="1">Allows you to change the first (starting) line number.</param>
<param name="gutter" type="bool" default="true">Allows you to turn gutter with line numbers on and off.</param>
<param name="ruler" type="bool" default="false">Allows you to show column ruler on top of highlighted elements.</param>
<param name="toolbar" type="bool" default="true">Toggles toolbar on/off.</param>
<param name="wrap" type="bool" default="true">Allows you to turn line wrapping feature on and off.</param>
<param name="theme" type="str" optional="true">Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config)</param>
<return type="xml">format($code, $collapse, $firstline, $gutter, $ruler, $tooblar, $wrap, $theme, 'Diff')</return>
</function>
<function transform="pre">
<name>groovy</name>
<description>Highlight Groovy syntax</description>
<param name="code" type="str">source code to highlight</param>
<param name="collapse" type="bool" default="false">Allows you to force highlighted elements on the page to be collapsed by default.</param>
<param name="firstline" type="num" default="1">Allows you to change the first (starting) line number.</param>
<param name="gutter" type="bool" default="true">Allows you to turn gutter with line numbers on and off.</param>
<param name="ruler" type="bool" default="false">Allows you to show column ruler on top of highlighted elements.</param>
<param name="toolbar" type="bool" default="true">Toggles toolbar on/off.</param>
<param name="wrap" type="bool" default="true">Allows you to turn line wrapping feature on and off.</param>
<param name="theme" type="str" optional="true">Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config)</param>
<return type="xml">format($code, $collapse, $firstline, $gutter, $ruler, $tooblar, $wrap, $theme, 'Groovy')</return>
</function>
<function transform="pre">
<name>html</name>
<description>Highlight HTML syntax</description>
<param name="code" type="str">source code to highlight</param>
<param name="collapse" type="bool" default="false">Allows you to force highlighted elements on the page to be collapsed by default.</param>
<param name="firstline" type="num" default="1">Allows you to change the first (starting) line number.</param>
<param name="gutter" type="bool" default="true">Allows you to turn gutter with line numbers on and off.</param>
<param name="ruler" type="bool" default="false">Allows you to show column ruler on top of highlighted elements.</param>
<param name="toolbar" type="bool" default="true">Toggles toolbar on/off.</param>
<param name="wrap" type="bool" default="true">Allows you to turn line wrapping feature on and off.</param>
<param name="theme" type="str" optional="true">Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config)</param>
<return type="xml">format($code, $collapse, $firstline, $gutter, $ruler, $tooblar, $wrap, $theme, 'Xml')</return>
</function>
<function transform="pre">
<name>java</name>
<description>Highlight Java syntax</description>
<param name="code" type="str">source code to highlight</param>
<param name="collapse" type="bool" default="false">Allows you to force highlighted elements on the page to be collapsed by default.</param>
<param name="firstline" type="num" default="1">Allows you to change the first (starting) line number.</param>
<param name="gutter" type="bool" default="true">Allows you to turn gutter with line numbers on and off.</param>
<param name="ruler" type="bool" default="false">Allows you to show column ruler on top of highlighted elements.</param>
<param name="toolbar" type="bool" default="true">Toggles toolbar on/off.</param>
<param name="wrap" type="bool" default="true">Allows you to turn line wrapping feature on and off.</param>
<param name="theme" type="str" optional="true">Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config)</param>
<return type="xml">format($code, $collapse, $firstline, $gutter, $ruler, $tooblar, $wrap, $theme, 'Java')</return>
</function>
<function transform="pre">
<name>javafx</name>
<description>Highlight JavaFX syntax</description>
<param name="code" type="str">source code to highlight</param>
<param name="collapse" type="bool" default="false">Allows you to force highlighted elements on the page to be collapsed by default.</param>
<param name="firstline" type="num" default="1">Allows you to change the first (starting) line number.</param>
<param name="gutter" type="bool" default="true">Allows you to turn gutter with line numbers on and off.</param>
<param name="ruler" type="bool" default="false">Allows you to show column ruler on top of highlighted elements.</param>
<param name="toolbar" type="bool" default="true">Toggles toolbar on/off.</param>
<param name="wrap" type="bool" default="true">Allows you to turn line wrapping feature on and off.</param>
<param name="theme" type="str" optional="true">Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config)</param>
<return type="xml">format($code, $collapse, $firstline, $gutter, $ruler, $tooblar, $wrap, $theme, 'JavaFX')</return>
</function>
<function transform="pre">
<name>javascript</name>
<description>Highlight JavaScript syntax</description>
<param name="code" type="str">source code to highlight</param>
<param name="collapse" type="bool" default="false">Allows you to force highlighted elements on the page to be collapsed by default.</param>
<param name="firstline" type="num" default="1">Allows you to change the first (starting) line number.</param>
<param name="gutter" type="bool" default="true">Allows you to turn gutter with line numbers on and off.</param>
<param name="ruler" type="bool" default="false">Allows you to show column ruler on top of highlighted elements.</param>
<param name="toolbar" type="bool" default="true">Toggles toolbar on/off.</param>
<param name="wrap" type="bool" default="true">Allows you to turn line wrapping feature on and off.</param>
<param name="theme" type="str" optional="true">Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config)</param>
<return type="xml">format($code, $collapse, $firstline, $gutter, $ruler, $tooblar, $wrap, $theme, 'JScript')</return>
</function>
<function transform="pre">
<name>perl</name>
<description>Highlight Perl syntax</description>
<param name="code" type="str">source code to highlight</param>
<param name="collapse" type="bool" default="false">Allows you to force highlighted elements on the page to be collapsed by default.</param>
<param name="firstline" type="num" default="1">Allows you to change the first (starting) line number.</param>
<param name="gutter" type="bool" default="true">Allows you to turn gutter with line numbers on and off.</param>
<param name="ruler" type="bool" default="false">Allows you to show column ruler on top of highlighted elements.</param>
<param name="toolbar" type="bool" default="true">Toggles toolbar on/off.</param>
<param name="wrap" type="bool" default="true">Allows you to turn line wrapping feature on and off.</param>
<param name="theme" type="str" optional="true">Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config)</param>
<return type="xml">format($code, $collapse, $firstline, $gutter, $ruler, $tooblar, $wrap, $theme, 'Perl')</return>
</function>
<function transform="pre">
<name>php</name>
<description>Highlight PHP syntax</description>
<param name="code" type="str">source code to highlight</param>
<param name="collapse" type="bool" default="false">Allows you to force highlighted elements on the page to be collapsed by default.</param>
<param name="firstline" type="num" default="1">Allows you to change the first (starting) line number.</param>
<param name="gutter" type="bool" default="true">Allows you to turn gutter with line numbers on and off.</param>
<param name="ruler" type="bool" default="false">Allows you to show column ruler on top of highlighted elements.</param>
<param name="toolbar" type="bool" default="true">Toggles toolbar on/off.</param>
<param name="wrap" type="bool" default="true">Allows you to turn line wrapping feature on and off.</param>
<param name="theme" type="str" optional="true">Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config)</param>
<return type="xml">format($code, $collapse, $firstline, $gutter, $ruler, $tooblar, $wrap, $theme, 'Php')</return>
</function>
<function transform="pre">
<name>powershell</name>
<description>Highlight Powershell syntax</description>
<param name="code" type="str">source code to highlight</param>
<param name="collapse" type="bool" default="false">Allows you to force highlighted elements on the page to be collapsed by default.</param>
<param name="firstline" type="num" default="1">Allows you to change the first (starting) line number.</param>
<param name="gutter" type="bool" default="true">Allows you to turn gutter with line numbers on and off.</param>
<param name="ruler" type="bool" default="false">Allows you to show column ruler on top of highlighted elements.</param>
<param name="toolbar" type="bool" default="true">Toggles toolbar on/off.</param>
<param name="wrap" type="bool" default="true">Allows you to turn line wrapping feature on and off.</param>
<param name="theme" type="str" optional="true">Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config)</param>
<return type="xml">format($code, $collapse, $firstline, $gutter, $ruler, $tooblar, $wrap, $theme, 'Powershell')</return>
</function>
<function transform="pre">
<name>python</name>
<description>Highlight Python syntax</description>
<param name="code" type="str">source code to highlight</param>
<param name="collapse" type="bool" default="false">Allows you to force highlighted elements on the page to be collapsed by default.</param>
<param name="firstline" type="num" default="1">Allows you to change the first (starting) line number.</param>
<param name="gutter" type="bool" default="true">Allows you to turn gutter with line numbers on and off.</param>
<param name="ruler" type="bool" default="false">Allows you to show column ruler on top of highlighted elements.</param>
<param name="toolbar" type="bool" default="true">Toggles toolbar on/off.</param>
<param name="wrap" type="bool" default="true">Allows you to turn line wrapping feature on and off.</param>
<param name="theme" type="str" optional="true">Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config)</param>
<return type="xml">format($code, $collapse, $firstline, $gutter, $ruler, $tooblar, $wrap, $theme, 'Python')</return>
</function>
<function transform="pre">
<name>ruby</name>
<description>Highlight Ruby syntax</description>
<param name="code" type="str">source code to highlight</param>
<param name="collapse" type="bool" default="false">Allows you to force highlighted elements on the page to be collapsed by default.</param>
<param name="firstline" type="num" default="1">Allows you to change the first (starting) line number.</param>
<param name="gutter" type="bool" default="true">Allows you to turn gutter with line numbers on and off.</param>
<param name="ruler" type="bool" default="false">Allows you to show column ruler on top of highlighted elements.</param>
<param name="toolbar" type="bool" default="true">Toggles toolbar on/off.</param>
<param name="wrap" type="bool" default="true">Allows you to turn line wrapping feature on and off.</param>
<param name="theme" type="str" optional="true">Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config)</param>
<return type="xml">format($code, $collapse, $firstline, $gutter, $ruler, $tooblar, $wrap, $theme, 'Ruby')</return>
</function>
<function transform="pre">
<name>scala</name>
<description>Highlight Scala syntax</description>
<param name="code" type="str">source code to highlight</param>
<param name="collapse" type="bool" default="false">Allows you to force highlighted elements on the page to be collapsed by default.</param>
<param name="firstline" type="num" default="1">Allows you to change the first (starting) line number.</param>
<param name="gutter" type="bool" default="true">Allows you to turn gutter with line numbers on and off.</param>
<param name="ruler" type="bool" default="false">Allows you to show column ruler on top of highlighted elements.</param>
<param name="toolbar" type="bool" default="true">Toggles toolbar on/off.</param>
<param name="wrap" type="bool" default="true">Allows you to turn line wrapping feature on and off.</param>
<param name="theme" type="str" optional="true">Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config)</param>
<return type="xml">format($code, $collapse, $firstline, $gutter, $ruler, $tooblar, $wrap, $theme, 'Scala')</return>
</function>
<function transform="pre">
<name>shell</name>
<description>Highlight bash/sh/ksh syntax</description>
<param name="code" type="str">source code to highlight</param>
<param name="collapse" type="bool" default="false">Allows you to force highlighted elements on the page to be collapsed by default.</param>
<param name="firstline" type="num" default="1">Allows you to change the first (starting) line number.</param>
<param name="gutter" type="bool" default="true">Allows you to turn gutter with line numbers on and off.</param>
<param name="ruler" type="bool" default="false">Allows you to show column ruler on top of highlighted elements.</param>
<param name="toolbar" type="bool" default="true">Toggles toolbar on/off.</param>
<param name="wrap" type="bool" default="true">Allows you to turn line wrapping feature on and off.</param>
<param name="theme" type="str" optional="true">Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config)</param>
<return type="xml">format($code, $collapse, $firstline, $gutter, $ruler, $tooblar, $wrap, $theme, 'Bash')</return>
</function>
<function transform="pre">
<name>sql</name>
<description>Highlight SQL syntax</description>
<param name="code" type="str">source code to highlight</param>
<param name="collapse" type="bool" default="false">Allows you to force highlighted elements on the page to be collapsed by default.</param>
<param name="firstline" type="num" default="1">Allows you to change the first (starting) line number.</param>
<param name="gutter" type="bool" default="true">Allows you to turn gutter with line numbers on and off.</param>
<param name="ruler" type="bool" default="false">Allows you to show column ruler on top of highlighted elements.</param>
<param name="toolbar" type="bool" default="true">Toggles toolbar on/off.</param>
<param name="wrap" type="bool" default="true">Allows you to turn line wrapping feature on and off.</param>
<param name="theme" type="str" optional="true">Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config)</param>
<return type="xml">format($code, $collapse, $firstline, $gutter, $ruler, $tooblar, $wrap, $theme, 'Sql')</return>
</function>
<function transform="pre">
<name>text</name>
<description>Show plain text</description>
<param name="code" type="str">source code to highlight</param>
<param name="collapse" type="bool" default="false">Allows you to force highlighted elements on the page to be collapsed by default.</param>
<param name="firstline" type="num" default="1">Allows you to change the first (starting) line number.</param>
<param name="gutter" type="bool" default="true">Allows you to turn gutter with line numbers on and off.</param>
<param name="ruler" type="bool" default="false">Allows you to show column ruler on top of highlighted elements.</param>
<param name="toolbar" type="bool" default="true">Toggles toolbar on/off.</param>
<param name="wrap" type="bool" default="true">Allows you to turn line wrapping feature on and off.</param>
<param name="theme" type="str" optional="true">Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config)</param>
<return type="xml">format($code, $collapse, $firstline, $gutter, $ruler, $tooblar, $wrap, $theme, 'Plain')</return>
</function>
<function transform="pre">
<name>vb</name>
<description>Highlight Visual Basic syntax</description>
<param name="code" type="str">source code to highlight</param>
<param name="collapse" type="bool" default="false">Allows you to force highlighted elements on the page to be collapsed by default.</param>
<param name="firstline" type="num" default="1">Allows you to change the first (starting) line number.</param>
<param name="gutter" type="bool" default="true">Allows you to turn gutter with line numbers on and off.</param>
<param name="ruler" type="bool" default="false">Allows you to show column ruler on top of highlighted elements.</param>
<param name="toolbar" type="bool" default="true">Toggles toolbar on/off.</param>
<param name="wrap" type="bool" default="true">Allows you to turn line wrapping feature on and off.</param>
<param name="theme" type="str" optional="true">Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config)</param>
<return type="xml">format($code, $collapse, $firstline, $gutter, $ruler, $tooblar, $wrap, $theme, 'Vb')</return>
</function>
<function transform="pre">
<name>xml</name>
<description>Highlight XML syntax</description>
<param name="code" type="str">source code to highlight</param>
<param name="collapse" type="bool" default="false">Allows you to force highlighted elements on the page to be collapsed by default.</param>
<param name="firstline" type="num" default="1">Allows you to change the first (starting) line number.</param>
<param name="gutter" type="bool" default="true">Allows you to turn gutter with line numbers on and off.</param>
<param name="ruler" type="bool" default="false">Allows you to show column ruler on top of highlighted elements.</param>
<param name="toolbar" type="bool" default="true">Toggles toolbar on/off.</param>
<param name="wrap" type="bool" default="true">Allows you to turn line wrapping feature on and off.</param>
<param name="theme" type="str" optional="true">Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config)</param>
<return type="xml">format($code, $collapse, $firstline, $gutter, $ruler, $tooblar, $wrap, $theme, 'Xml')</return>
</function>
<function transform="pre">
<name>coldfusion</name>
<description>Highlight ColdFusion syntax</description>
<param name="code" type="str">source code to highlight</param>
<param name="collapse" type="bool" default="false">Allows you to force highlighted elements on the page to be collapsed by default.</param>
<param name="firstline" type="num" default="1">Allows you to change the first (starting) line number.</param>
<param name="gutter" type="bool" default="true">Allows you to turn gutter with line numbers on and off.</param>
<param name="ruler" type="bool" default="false">Allows you to show column ruler on top of highlighted elements.</param>
<param name="toolbar" type="bool" default="true">Toggles toolbar on/off.</param>
<param name="wrap" type="bool" default="true">Allows you to turn line wrapping feature on and off.</param>
<param name="theme" type="str" optional="true">Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config)</param>
<return type="xml">format($code, $collapse, $firstline, $gutter, $ruler, $tooblar, $wrap, $theme, 'ColdFusion')</return>
</function>
<function transform="pre">
<name>erlang</name>
<description>Highlight Erlang syntax</description>
<param name="code" type="str">source code to highlight</param>
<param name="collapse" type="bool" default="false">Allows you to force highlighted elements on the page to be collapsed by default.</param>
<param name="firstline" type="num" default="1">Allows you to change the first (starting) line number.</param>
<param name="gutter" type="bool" default="true">Allows you to turn gutter with line numbers on and off.</param>
<param name="ruler" type="bool" default="false">Allows you to show column ruler on top of highlighted elements.</param>
<param name="toolbar" type="bool" default="true">Toggles toolbar on/off.</param>
<param name="wrap" type="bool" default="true">Allows you to turn line wrapping feature on and off.</param>
<param name="theme" type="str" optional="true">Select color theme for highlighted text. (one of 'Default', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'Midnight', or 'RDark'; default: see config)</param>
<return type="xml">format($code, $collapse, $firstline, $gutter, $ruler, $tooblar, $wrap, $theme, 'Erlang')</return>
</function>
</extension>
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
Copyright © 2011 MindTouch, Inc. Powered by