Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Wiki Macros

Trac macros are plugins to extend the Trac engine with custom 'functions' written in Python. A macro inserts dynamic HTML data in any context supporting WikiFormatting.

Another kind of macros are WikiProcessors. They typically deal with alternate markup formats and representation of larger blocks of information (like source code highlighting).

Using Macros

Macro calls are enclosed in two square brackets. Like python functions, macros can also have arguments, a comma separated list within parentheses.

Examples

 [[Timestamp]]

Display:

Sat Dec 16 16:51:23 2017

 [[HelloWorld(Testing)]]

Display:

Hello World, args = Testing

Available Macros

Note that the following list will only contain the macro documentation if you've not enabled -OO optimizations, or not set the PythonOptimize option for mod_python.

[[InterTrac]]

Provide a list of known InterTrac prefixes.

[[TitleIndex]]

Inserts an alphabetic list of all wiki pages into the output.

Accepts a prefix string as parameter: if provided, only pages with names that start with the prefix are included in the resulting list. If this parameter is omitted, all pages are listed.

[[RecentChanges]]

Lists all pages that have recently been modified, grouping them by the day they were last modified.

This macro accepts two parameters. The first is a prefix string: if provided, only pages with names that start with the prefix are included in the resulting list. If this parameter is omitted, all pages are listed.

The second parameter is a number for limiting the number of pages returned. For example, specifying a limit of 5 will result in only the five most recently changed pages to be included in the list.

[[PageOutline]]

Displays a structural outline of the current wiki page, each item in the outline being a link to the corresponding heading.

This macro accepts three optional parameters:

  • The first is a number or range that allows configuring the minimum and maximum level of headings that should be included in the outline. For example, specifying "1" here will result in only the top-level headings being included in the outline. Specifying "2-3" will make the outline include all headings of level 2 and 3, as a nested list. The default is to include all heading levels.
  • The second parameter can be used to specify a custom title (the default is no title).
  • The third parameter selects the style of the outline. This can be either inline or pullout (the latter being the default). The inline style renders the outline as normal part of the content, while pullout causes the outline to be rendered in a box that is by default floated to the right side of the other content.
[[Image]]

Embed an image in wiki-formatted text.

The first argument is the file specification. The file specification may reference attachments or files in three ways:

  • module:id:file, where module can be either wiki or ticket, to refer to the attachment named file of the specified wiki page or ticket.
  • id:file: same as above, but id is either a ticket shorthand or a Wiki page name.
  • file to refer to a local attachment named 'file'. This only works from within that wiki page or a ticket.

Also, the file specification may refer to repository files, using the source:file syntax (source:file@rev works also).

The remaining arguments are optional and allow configuring the attributes and style of the rendered <img> element:

  • digits and unit are interpreted as the size (ex. 120, 25%) for the image
  • right, left, top or bottom are interpreted as the alignment for the image
  • nolink means without link to image source.
  • key=value style are interpreted as HTML attributes or CSS style

indications for the image. Valid keys are:

  • align, border, width, height, alt, title, longdesc, class, id and usemap
  • border can only be a number

Examples:

    [[Image(photo.jpg)]]                           # simplest
    [[Image(photo.jpg, 120px)]]                    # with size
    [[Image(photo.jpg, right)]]                    # aligned by keyword
    [[Image(photo.jpg, nolink)]]                   # without link to source
    [[Image(photo.jpg, align=right)]]              # aligned by attribute

You can use image from other page, other ticket or other module.

    [[Image(OtherPage:foo.bmp)]]    # if current module is wiki
    [[Image(base/sub:bar.bmp)]]     # from hierarchical wiki page
    [[Image(#3:baz.bmp)]]           # if in a ticket, point to #3
    [[Image(ticket:36:boo.jpg)]]
    [[Image(source:/images/bee.jpg)]] # straight from the repository!
    [[Image(htdocs:foo/bar.png)]]   # image file in project htdocs dir.

Adapted from the Image.py macro created by Shun-ichi Goto <gotoh@taiyo.co.jp>

[[MacroList]]

Displays a list of all installed Wiki macros, including documentation if available.

Optionally, the name of a specific macro can be provided as an argument. In that case, only the documentation for that macro will be rendered.

Note that this macro will not be able to display the documentation of macros if the PythonOptimize option is enabled for mod_python!

[[TracIni]]

Produce documentation for Trac configuration file.

Typically, this will be used in the TracIni page. Optional arguments are a configuration section filter, and a configuration option name filter: only the configuration options whose section and name start with the filters are output.

[[HelloWorld]]

Example macro.

[[Timestamp]]

Inserts the current time (in seconds) into the wiki page.

[[TracGuideToc]]

This macro shows a quick and dirty way to make a table-of-contents for a set of wiki pages.

[[TOC]]

Generate a table of contents for the current page or a set of pages. If no arguments are given, a table of contents is generated for the current page, with the top-level title stripped:

    [[TOC]]

To generate a table of contents for a set of pages, simply pass them as comma separated arguments to the TOC macro, e.g. as in

[[TOC(TracGuide, TracInstall, TracUpgrade, TracIni, TracAdmin, TracBackup, TracLogging,
         TracPermissions, TracWiki, WikiFormatting, TracBrowser, TracRoadmap, TracChangeset,
         TracTickets, TracReports, TracQuery, TracTimeline, TracRss, TracNotification)]]

The following control arguments change the default behaviour of the TOC macro:

Argument Meaning
heading=<x> Override the default heading of "Table of Contents"
noheading Suppress display of the heading.
depth=<n> Display headings of subsequent pages to a maximum depth of <n>.
inline Display TOC inline rather than as a side-bar.
titleindex Only display the page name and title of each page, similar to TitleIndex.

Note that the current page must also be specified if individual wiki pages are given in the argument list.

[[scm]]

Syntax highlighting for Scheme using Pygments

[[javascript+erb]]

Syntax highlighting for JavaScript?+Ruby using Pygments

[[postgresql-console]]

Syntax highlighting for PostgreSQL console (psql) using Pygments

[[ezhil]]

Syntax highlighting for Ezhil using Pygments

[[nawk]]

Syntax highlighting for Awk using Pygments

[[roboconf-instances]]

Syntax highlighting for Roboconf Instances using Pygments

[[xml+genshi]]

Syntax highlighting for Genshi using Pygments

[[qvt]]

Syntax highlighting for QVTO using Pygments

[[mql4]]

Syntax highlighting for MQL using Pygments

[[mql5]]

Syntax highlighting for MQL using Pygments

[[trac-wiki]]

Syntax highlighting for MoinMoin/Trac? Wiki markup using Pygments

[[cython]]

Syntax highlighting for Cython using Pygments

[[antlr-cpp]]

Syntax highlighting for ANTLR With CPP Target using Pygments

[[ts]]

Syntax highlighting for TypeScript? using Pygments

[[xml+evoque]]

Syntax highlighting for XML+Evoque using Pygments

[[matlab]]

Syntax highlighting for Matlab using Pygments

[[css+mako]]

Syntax highlighting for CSS+Mako using Pygments

[[vbnet]]

Syntax highlighting for VB.net using Pygments

[[spec]]

Syntax highlighting for RPMSpec using Pygments

[[xml+smarty]]

Syntax highlighting for XML+Smarty using Pygments

[[easytrieve]]

Syntax highlighting for Easytrieve using Pygments

[[clojurescript]]

Syntax highlighting for ClojureScript? using Pygments

[[html+evoque]]

Syntax highlighting for HTML+Evoque using Pygments

[[arexx]]

Syntax highlighting for Rexx using Pygments

[[fan]]

Syntax highlighting for Fantom using Pygments

[[chapel]]

Syntax highlighting for Chapel using Pygments

[[shell-session]]

Syntax highlighting for Bash Session using Pygments

[[cryptol]]

Syntax highlighting for Cryptol using Pygments

[[robotframework]]

Syntax highlighting for RobotFramework? using Pygments

[[lidr]]

Syntax highlighting for Literate Idris using Pygments

[[squidconf]]

Syntax highlighting for SquidConf? using Pygments

[[smali]]

Syntax highlighting for Smali using Pygments

[[trafficscript]]

Syntax highlighting for TrafficScript? using Pygments

[[fsharp]]

Syntax highlighting for FSharp using Pygments

[[cfm]]

Syntax highlighting for Coldfusion HTML using Pygments

[[vhdl]]

Syntax highlighting for vhdl using Pygments

[[tea]]

Syntax highlighting for Tea using Pygments

[[apacheconf]]

Syntax highlighting for ApacheConf? using Pygments

[[elisp]]

Syntax highlighting for EmacsLisp? using Pygments

[[cfc]]

Syntax highlighting for Coldfusion CFC using Pygments

[[tex]]

Syntax highlighting for TeX using Pygments

[[go]]

Syntax highlighting for Go using Pygments

[[mason]]

Syntax highlighting for Mason using Pygments

[[qml]]

Syntax highlighting for QML using Pygments

[[javascript+genshi]]

Syntax highlighting for JavaScript?+Genshi Text using Pygments

[[as3]]

Syntax highlighting for ActionScript? 3 using Pygments

[[cfs]]

Syntax highlighting for cfstatement using Pygments

[[ambienttalk]]

Syntax highlighting for AmbientTalk? using Pygments

[[tcshcon]]

Syntax highlighting for Tcsh Session using Pygments

[[newlisp]]

Syntax highlighting for NewLisp? using Pygments

[[abl]]

Syntax highlighting for OpenEdge? ABL using Pygments

[[vctreestatus]]

Syntax highlighting for VCTreeStatus using Pygments

[[c-objdump]]

Syntax highlighting for c-objdump using Pygments

[[lighty]]

Syntax highlighting for Lighttpd configuration file using Pygments

[[vala]]

Syntax highlighting for Vala using Pygments

[[basemake]]

Syntax highlighting for Base Makefile using Pygments

[[gawk]]

Syntax highlighting for Awk using Pygments

[[octave]]

Syntax highlighting for Octave using Pygments

[[apache]]

Syntax highlighting for ApacheConf? using Pygments

[[javascript+myghty]]

Syntax highlighting for JavaScript?+Myghty using Pygments

[[cf3]]

Syntax highlighting for CFEngine3 using Pygments

[[thrift]]

Syntax highlighting for Thrift using Pygments

[[mawk]]

Syntax highlighting for Awk using Pygments

[[pypylog]]

Syntax highlighting for PyPy? Log using Pygments

[[jproperties]]

Syntax highlighting for Properties using Pygments

[[boo]]

Syntax highlighting for Boo using Pygments

[[chaiscript]]

Syntax highlighting for ChaiScript? using Pygments

[[rkt]]

Syntax highlighting for Racket using Pygments

[[jbst]]

Syntax highlighting for Duel using Pygments

[[gosu]]

Syntax highlighting for Gosu using Pygments

[[julia]]

Syntax highlighting for Julia using Pygments

[[vim]]

Syntax highlighting for VimL using Pygments

[[bro]]

Syntax highlighting for Bro using Pygments

[[terraform]]

Syntax highlighting for Terraform using Pygments

[[apl]]

Syntax highlighting for APL using Pygments

[[bsdmake]]

Syntax highlighting for Makefile using Pygments

[[foxpro]]

Syntax highlighting for FoxPro? using Pygments

[[perl]]

Syntax highlighting for Perl using Pygments

[[common-lisp]]

Syntax highlighting for Common Lisp using Pygments

[[squid.conf]]

Syntax highlighting for SquidConf? using Pygments

[[asm]]

Syntax highlighting for GAS using Pygments

[[m2]]

Syntax highlighting for Modula-2 using Pygments

[[xml+ruby]]

Syntax highlighting for XML+Ruby using Pygments

[[msc]]

Syntax highlighting for Mscgen using Pygments

[[dylan-console]]

Syntax highlighting for Dylan session using Pygments

[[antlr-python]]

Syntax highlighting for ANTLR With Python Target using Pygments

[[ooc]]

Syntax highlighting for Ooc using Pygments

[[literate-haskell]]

Syntax highlighting for Literate Haskell using Pygments

[[mozhashpreproc]]

Syntax highlighting for mozhashpreproc using Pygments

[[earl-grey]]

Syntax highlighting for Earl Grey using Pygments

[[xml+spitfire]]

Syntax highlighting for XML+Cheetah using Pygments

[[moin]]

Syntax highlighting for MoinMoin/Trac? Wiki markup using Pygments

[[gherkin]]

Syntax highlighting for Gherkin using Pygments

[[psql]]

Syntax highlighting for PostgreSQL console (psql) using Pygments

[[logos]]

Syntax highlighting for Logos using Pygments

[[mf]]

Syntax highlighting for Makefile using Pygments

[[css+jinja]]

Syntax highlighting for CSS+Django/Jinja using Pygments

[[igor]]

Syntax highlighting for Igor using Pygments

[[erb]]

Syntax highlighting for ERB using Pygments

[[v]]

Syntax highlighting for verilog using Pygments

[[erl]]

Syntax highlighting for Erlang erl session using Pygments

[[control]]

Syntax highlighting for Debian Control file using Pygments

[[tap]]

Syntax highlighting for TAP using Pygments

[[pawn]]

Syntax highlighting for Pawn using Pygments

[[css+lasso]]

Syntax highlighting for CSS+Lasso using Pygments

[[fortranfixed]]

Syntax highlighting for FortranFixed? using Pygments

[[jsonml+bst]]

Syntax highlighting for Duel using Pygments

[[slim]]

Syntax highlighting for Slim using Pygments

[[inform6]]

Syntax highlighting for Inform 6 using Pygments

[[inform7]]

Syntax highlighting for Inform 7 using Pygments

[[dosini]]

Syntax highlighting for INI using Pygments

[[py3tb]]

Syntax highlighting for Python 3.0 Traceback using Pygments

[[csh]]

Syntax highlighting for Tcsh using Pygments

[[mscgen]]

Syntax highlighting for Mscgen using Pygments

[[mxml]]

Syntax highlighting for MXML using Pygments

[[xml+velocity]]

Syntax highlighting for XML+Velocity using Pygments

[[css+django]]

Syntax highlighting for CSS+Django/Jinja using Pygments

[[actionscript]]

Syntax highlighting for ActionScript? using Pygments

[[html+cheetah]]

Syntax highlighting for HTML+Cheetah using Pygments

[[cheetah]]

Syntax highlighting for Cheetah using Pygments

[[css+php]]

Syntax highlighting for CSS+PHP using Pygments

[[css]]

Syntax highlighting for CSS using Pygments

[[protobuf]]

Syntax highlighting for Protocol Buffer using Pygments

[[tcsh]]

Syntax highlighting for Tcsh using Pygments

[[fy]]

Syntax highlighting for Fancy using Pygments

[[objdump]]

Syntax highlighting for objdump using Pygments

[[xml+lasso]]

Syntax highlighting for XML+Lasso using Pygments

[[blitzbasic]]

Syntax highlighting for BlitzBasic? using Pygments

[[igorpro]]

Syntax highlighting for Igor using Pygments

[[cljs]]

Syntax highlighting for ClojureScript? using Pygments

[[js+spitfire]]

Syntax highlighting for JavaScript?+Cheetah using Pygments

[[agda]]

Syntax highlighting for Agda using Pygments

[[man]]

Syntax highlighting for Groff using Pygments

[[scss]]

Syntax highlighting for SCSS using Pygments

[[xql]]

Syntax highlighting for XQuery using Pygments

[[sparql]]

Syntax highlighting for SPARQL using Pygments

[[liquid]]

Syntax highlighting for liquid using Pygments

[[ragel-objc]]

Syntax highlighting for Ragel in Objective C Host using Pygments

[[sp]]

Syntax highlighting for SourcePawn? using Pygments

[[sv]]

Syntax highlighting for systemverilog using Pygments

[[st]]

Syntax highlighting for Smalltalk using Pygments

[[objectpascal]]

Syntax highlighting for Delphi using Pygments

[[sh]]

Syntax highlighting for Bash using Pygments

[[lhs]]

Syntax highlighting for Literate Haskell using Pygments

[[alloy]]

Syntax highlighting for Alloy using Pygments

[[xul+mozpreproc]]

Syntax highlighting for XUL+mozpreproc using Pygments

[[moocode]]

Syntax highlighting for MOOCode using Pygments

[[debcontrol]]

Syntax highlighting for Debian Control file using Pygments

[[vfp]]

Syntax highlighting for FoxPro? using Pygments

[[antlr-as]]

Syntax highlighting for ANTLR With ActionScript? Target using Pygments

[[lsl]]

Syntax highlighting for LSL using Pygments

[[tcl]]

Syntax highlighting for Tcl using Pygments

[[lassoscript]]

Syntax highlighting for Lasso using Pygments

[[csharp]]

Syntax highlighting for C# using Pygments

[[zephir]]

Syntax highlighting for Zephir using Pygments

[[camkes]]

Syntax highlighting for CAmkES using Pygments

[[ada95]]

Syntax highlighting for Ada using Pygments

[[clj]]

Syntax highlighting for Clojure using Pygments

[[arduino]]

Syntax highlighting for Arduino using Pygments

[[yaml]]

Syntax highlighting for YAML using Pygments

[[ahk]]

Syntax highlighting for autohotkey using Pygments

[[erlang]]

Syntax highlighting for Erlang using Pygments

[[limbo]]

Syntax highlighting for Limbo using Pygments

[[coffee]]

Syntax highlighting for CoffeeScript? using Pygments

[[typescript]]

Syntax highlighting for TypeScript? using Pygments

[[ragel-cpp]]

Syntax highlighting for Ragel in CPP Host using Pygments

[[postgres]]

Syntax highlighting for PostgreSQL SQL dialect using Pygments

[[python]]

Syntax highlighting for Python using Pygments

[[red/system]]

Syntax highlighting for Red using Pygments

[[ebnf]]

Syntax highlighting for EBNF using Pygments

[[odin]]

Syntax highlighting for ODIN using Pygments

[[rexx]]

Syntax highlighting for Rexx using Pygments

[[myghty]]

Syntax highlighting for Myghty using Pygments

[[earlgrey]]

Syntax highlighting for Earl Grey using Pygments

[[cobolfree]]

Syntax highlighting for COBOLFree using Pygments

[[kernel-config]]

Syntax highlighting for Kconfig using Pygments

[[lisp]]

Syntax highlighting for Common Lisp using Pygments

[[modelica]]

Syntax highlighting for Modelica using Pygments

[[pan]]

Syntax highlighting for Pan using Pygments

[[terminfo]]

Syntax highlighting for Terminfo using Pygments

[[js+erb]]

Syntax highlighting for JavaScript?+Ruby using Pygments

[[x10]]

Syntax highlighting for X10 using Pygments

[[live-script]]

Syntax highlighting for LiveScript? using Pygments

[[yaml+jinja]]

Syntax highlighting for YAML+Jinja using Pygments

[[turtle]]

Syntax highlighting for Turtle using Pygments

[[objdump-nasm]]

Syntax highlighting for objdump-nasm using Pygments

[[antlr-objc]]

Syntax highlighting for ANTLR With ObjectiveC Target using Pygments

[[fish]]

Syntax highlighting for Fish using Pygments

[[ec]]

Syntax highlighting for eC using Pygments

[[ex]]

Syntax highlighting for Elixir using Pygments

[[ragel-rb]]

Syntax highlighting for Ragel in Ruby Host using Pygments

[[b3d]]

Syntax highlighting for BlitzBasic? using Pygments

[[urbiscript]]

Syntax highlighting for UrbiScript? using Pygments

[[csound]]

Syntax highlighting for Csound Orchestra using Pygments

[[cbmbas]]

Syntax highlighting for CBM BASIC V2 using Pygments

[[js+smarty]]

Syntax highlighting for JavaScript?+Smarty using Pygments

[[javascript+php]]

Syntax highlighting for JavaScript?+PHP using Pygments

[[css+mozpreproc]]

Syntax highlighting for CSS+mozpreproc using Pygments

[[rd]]

Syntax highlighting for Rd using Pygments

[[ceylon]]

Syntax highlighting for Ceylon using Pygments

[[sml]]

Syntax highlighting for Standard ML using Pygments

[[rb]]

Syntax highlighting for Ruby using Pygments

[[antlr-java]]

Syntax highlighting for ANTLR With Java Target using Pygments

[[red]]

Syntax highlighting for Red using Pygments

[[mql]]

Syntax highlighting for MQL using Pygments

[[asymptote]]

Syntax highlighting for Asymptote using Pygments

[[html+lasso]]

Syntax highlighting for HTML+Lasso using Pygments

[[asy]]

Syntax highlighting for Asymptote using Pygments

[[ecl]]

Syntax highlighting for ECL using Pygments

[[actionscript3]]

Syntax highlighting for ActionScript? 3 using Pygments

[[mma]]

Syntax highlighting for Mathematica using Pygments

[[bash]]

Syntax highlighting for Bash using Pygments

[[lcry]]

Syntax highlighting for Literate Cryptol using Pygments

[[js+ruby]]

Syntax highlighting for JavaScript?+Ruby using Pygments

[[ocaml]]

Syntax highlighting for OCaml using Pygments

[[mq5]]

Syntax highlighting for MQL using Pygments

[[nroff]]

Syntax highlighting for Groff using Pygments

[[glsl]]

Syntax highlighting for GLSL using Pygments

[[xml+myghty]]

Syntax highlighting for XML+Myghty using Pygments

[[pyrex]]

Syntax highlighting for Cython using Pygments

[[jsonld]]

Syntax highlighting for JSON-LD using Pygments

[[aconf]]

Syntax highlighting for ApacheConf? using Pygments

[[openbugs]]

Syntax highlighting for BUGS using Pygments

[[fancy]]

Syntax highlighting for Fancy using Pygments

[[csound-csd]]

Syntax highlighting for Csound Document using Pygments

[[puppet]]

Syntax highlighting for Puppet using Pygments

[[ragel-ruby]]

Syntax highlighting for Ragel in Ruby Host using Pygments

[[xq]]

Syntax highlighting for XQuery using Pygments

[[cadl]]

Syntax highlighting for cADL using Pygments

[[rbcon]]

Syntax highlighting for Ruby irb session using Pygments

[[php4]]

Syntax highlighting for PHP using Pygments

[[idl4]]

Syntax highlighting for CAmkES using Pygments

[[monkey]]

Syntax highlighting for Monkey using Pygments

[[makefile]]

Syntax highlighting for Makefile using Pygments

[[pkgconfig]]

Syntax highlighting for PkgConfig? using Pygments

[[pascal]]

Syntax highlighting for Delphi using Pygments

[[cfg]]

Syntax highlighting for INI using Pygments

[[scheme]]

Syntax highlighting for Scheme using Pygments

[[xbase]]

Syntax highlighting for FoxPro? using Pygments

[[rsl]]

Syntax highlighting for RSL using Pygments

[[antlr-ruby]]

Syntax highlighting for ANTLR With Ruby Target using Pygments

[[shell]]

Syntax highlighting for Bash using Pygments

[[xml+mako]]

Syntax highlighting for XML+Mako using Pygments

[[lighttpd]]

Syntax highlighting for Lighttpd configuration file using Pygments

[[moonscript]]

Syntax highlighting for MoonScript? using Pygments

[[rst]]

Syntax highlighting for reStructuredText using Pygments

[[xqm]]

Syntax highlighting for XQuery using Pygments

[[ps1con]]

Syntax highlighting for PowerShell? Session using Pygments

[[ca65]]

Syntax highlighting for ca65 assembler using Pygments

[[bbcode]]

Syntax highlighting for BBCode using Pygments

[[obj-j]]

Syntax highlighting for Objective-J using Pygments

[[cfengine3]]

Syntax highlighting for CFEngine3 using Pygments

[[obj-c]]

Syntax highlighting for Objective-C using Pygments

[[dtd]]

Syntax highlighting for DTD using Pygments

[[r]]

Syntax highlighting for S using Pygments

[[cpsa]]

Syntax highlighting for CPSA using Pygments

[[css+genshi]]

Syntax highlighting for CSS+Genshi Text using Pygments

[[js+lasso]]

Syntax highlighting for JavaScript?+Lasso using Pygments

[[css+erb]]

Syntax highlighting for CSS+Ruby using Pygments

[[openedge]]

Syntax highlighting for OpenEdge? ABL using Pygments

[[py3]]

Syntax highlighting for Python 3 using Pygments

[[hx]]

Syntax highlighting for Haxe using Pygments

[[bugs]]

Syntax highlighting for BUGS using Pygments

[[raw]]

Syntax highlighting for Raw token data using Pygments

[[brainfuck]]

Syntax highlighting for Brainfuck using Pygments

[[todotxt]]

Syntax highlighting for Todotxt using Pygments

[[mupad]]

Syntax highlighting for MuPAD using Pygments

[[django]]

Syntax highlighting for Django/Jinja using Pygments

[[css+myghty]]

Syntax highlighting for CSS+Myghty using Pygments

[[plpgsql]]

Syntax highlighting for PL/pgSQL using Pygments

[[lid]]

Syntax highlighting for DylanLID using Pygments

[[nsis]]

Syntax highlighting for NSIS using Pygments

[[tads3]]

Syntax highlighting for TADS 3 using Pygments

[[rout]]

Syntax highlighting for RConsole using Pygments

[[croc]]

Syntax highlighting for Croc using Pygments

[[javascript+django]]

Syntax highlighting for JavaScript?+Django/Jinja using Pygments

[[hxsl]]

Syntax highlighting for Haxe using Pygments

[[logtalk]]

Syntax highlighting for Logtalk using Pygments

[[crmsh]]

Syntax highlighting for Crmsh using Pygments

[[snobol]]

Syntax highlighting for Snobol using Pygments

[[bplus]]

Syntax highlighting for BlitzBasic? using Pygments

[[pyx]]

Syntax highlighting for Cython using Pygments

[[koka]]

Syntax highlighting for Koka using Pygments

[[livescript]]

Syntax highlighting for LiveScript? using Pygments

[[kal]]

Syntax highlighting for Kal using Pygments

[[sc]]

Syntax highlighting for SuperCollider? using Pygments

[[awk]]

Syntax highlighting for Awk using Pygments

[[objectivec++]]

Syntax highlighting for Objective-C++ using Pygments

[[jlcon]]

Syntax highlighting for Julia console using Pygments

[[doscon]]

Syntax highlighting for MSDOS Session using Pygments

[[qbs]]

Syntax highlighting for QML using Pygments

[[praat]]

Syntax highlighting for Praat using Pygments

[[js+myghty]]

Syntax highlighting for JavaScript?+Myghty using Pygments

[[js+cheetah]]

Syntax highlighting for JavaScript?+Cheetah using Pygments

[[pcmk]]

Syntax highlighting for Crmsh using Pygments

[[exs]]

Syntax highlighting for Elixir using Pygments

[[udiff]]

Syntax highlighting for Diff using Pygments

[[sources.list]]

Syntax highlighting for Debian Sourcelist using Pygments

[[html+genshi]]

Syntax highlighting for HTML+Genshi using Pygments

[[scilab]]

Syntax highlighting for Scilab using Pygments

[[salt]]

Syntax highlighting for YAML+Jinja using Pygments

[[boogie]]

Syntax highlighting for Boogie using Pygments

[[text]]

Syntax highlighting for Text only using Pygments

[[dosbatch]]

Syntax highlighting for Batchfile using Pygments

[[sage]]

Syntax highlighting for Python using Pygments

[[golo]]

Syntax highlighting for Golo using Pygments

[[aspx-vb]]

Syntax highlighting for aspx-vb using Pygments

[[objc]]

Syntax highlighting for Objective-C using Pygments

[[rts]]

Syntax highlighting for TrafficScript? using Pygments

[[html+myghty]]

Syntax highlighting for HTML+Myghty using Pygments

[[autoit]]

Syntax highlighting for AutoIt? using Pygments

[[objj]]

Syntax highlighting for Objective-J using Pygments

Syntax highlighting for Kconfig using Pygments

[[xml]]

Syntax highlighting for XML using Pygments

[[iex]]

Syntax highlighting for Elixir iex session using Pygments

[[html+spitfire]]

Syntax highlighting for HTML+Cheetah using Pygments

[[factor]]

Syntax highlighting for Factor using Pygments

[[htmlcheetah]]

Syntax highlighting for HTML+Cheetah using Pygments

[[dockerfile]]

Syntax highlighting for Docker using Pygments

[[ksh]]

Syntax highlighting for Bash using Pygments

[[redcode]]

Syntax highlighting for Redcode using Pygments

[[dpatch]]

Syntax highlighting for Darcs Patch using Pygments

[[dg]]

Syntax highlighting for dg using Pygments

[[handlebars]]

Syntax highlighting for Handlebars using Pygments

[[ssp]]

Syntax highlighting for Scalate Server Page using Pygments

[[psm1]]

Syntax highlighting for PowerShell? using Pygments

[[antlr-perl]]

Syntax highlighting for ANTLR With Perl Target using Pygments

[[pypy]]

Syntax highlighting for PyPy? Log using Pygments

[[maql]]

Syntax highlighting for MAQL using Pygments

[[bat]]

Syntax highlighting for Batchfile using Pygments

[[resource]]

Syntax highlighting for ResourceBundle? using Pygments

[[cry]]

Syntax highlighting for Cryptol using Pygments

[[abap]]

Syntax highlighting for ABAP using Pygments

[[c++]]

Syntax highlighting for C++ using Pygments

[[htmldjango]]

Syntax highlighting for HTML+Django/Jinja using Pygments

[[perl6]]

Syntax highlighting for Perl6 using Pygments

[[html+erb]]

Syntax highlighting for RHTML using Pygments

[[ini]]

Syntax highlighting for INI using Pygments

[[befunge]]

Syntax highlighting for Befunge using Pygments

[[jasminxt]]

Syntax highlighting for Jasmin using Pygments

[[ragel]]

Syntax highlighting for Ragel using Pygments

[[csound-score]]

Syntax highlighting for Csound Score using Pygments

[[jade]]

Syntax highlighting for Jade using Pygments

[[resourcebundle]]

Syntax highlighting for ResourceBundle? using Pygments

[[html+velocity]]

Syntax highlighting for HTML+Velocity using Pygments

[[racket]]

Syntax highlighting for Racket using Pygments

[[cirru]]

Syntax highlighting for Cirru using Pygments

[[haxeml]]

Syntax highlighting for Hxml using Pygments

[[javascript+mozpreproc]]

Syntax highlighting for Javascript+mozpreproc using Pygments

[[delphi]]

Syntax highlighting for Delphi using Pygments

[[lua]]

Syntax highlighting for Lua using Pygments

[[verilog]]

Syntax highlighting for verilog using Pygments

[[qbasic]]

Syntax highlighting for QBasic using Pygments

[[progress]]

Syntax highlighting for OpenEdge? ABL using Pygments

[[irb]]

Syntax highlighting for Ruby irb session using Pygments

[[irc]]

Syntax highlighting for IRC logs using Pygments

[[jasmin]]

Syntax highlighting for Jasmin using Pygments

[[rconsole]]

Syntax highlighting for RConsole using Pygments

[[mozpercentpreproc]]

Syntax highlighting for mozpercentpreproc using Pygments

[[antlr-csharp]]

Syntax highlighting for ANTLR With C# Target using Pygments

[[xslt]]

Syntax highlighting for XSLT using Pygments

[[javascript]]

Syntax highlighting for JavaScript? using Pygments

[[html+smarty]]

Syntax highlighting for HTML+Smarty using Pygments

[[js]]

Syntax highlighting for JavaScript? using Pygments

[[jl]]

Syntax highlighting for Julia using Pygments

[[spitfire]]

Syntax highlighting for Cheetah using Pygments

[[swift]]

Syntax highlighting for Swift using Pygments

[[lidris]]

Syntax highlighting for Literate Idris using Pygments

[[coq]]

Syntax highlighting for Coq using Pygments

[[lagda]]

Syntax highlighting for Literate Agda using Pygments

[[c]]

Syntax highlighting for C using Pygments

[[html+twig]]

Syntax highlighting for HTML+Twig using Pygments

[[scaml]]

Syntax highlighting for Scaml using Pygments

[[ragel-em]]

Syntax highlighting for Embedded Ragel using Pygments

[[s]]

Syntax highlighting for S using Pygments

[[css+smarty]]

Syntax highlighting for CSS+Smarty using Pygments

[[genshitext]]

Syntax highlighting for Genshi Text using Pygments

[[dylan-lid]]

Syntax highlighting for DylanLID using Pygments

[[gooddata-cl]]

Syntax highlighting for GoodData?-CL using Pygments

[[cl]]

Syntax highlighting for Common Lisp using Pygments

[[pov]]

Syntax highlighting for POVRay using Pygments

[[pot]]

Syntax highlighting for Gettext Catalog using Pygments

[[xtend]]

Syntax highlighting for Xtend using Pygments

[[diff]]

Syntax highlighting for Diff using Pygments

[[cp]]

Syntax highlighting for Component Pascal using Pygments

[[cu]]

Syntax highlighting for CUDA using Pygments

[[hexdump]]

Syntax highlighting for Hexdump using Pygments

[[ioke]]

Syntax highlighting for Ioke using Pygments

[[kconfig]]

Syntax highlighting for Kconfig using Pygments

[[fortran]]

Syntax highlighting for Fortran using Pygments

[[py]]

Syntax highlighting for Python using Pygments

[[html+handlebars]]

Syntax highlighting for HTML+Handlebars using Pygments

[[json]]

Syntax highlighting for JSON using Pygments

[[basic]]

Syntax highlighting for QBasic using Pygments

[[haxe]]

Syntax highlighting for Haxe using Pygments

[[numpy]]

Syntax highlighting for NumPy? using Pygments

[[postscr]]

Syntax highlighting for PostScript? using Pygments

[[pl]]

Syntax highlighting for Perl using Pygments

[[chai]]

Syntax highlighting for ChaiScript? using Pygments

[[linux-config]]

Syntax highlighting for Kconfig using Pygments

[[objective-c++]]

Syntax highlighting for Objective-C++ using Pygments

[[c#]]

Syntax highlighting for C# using Pygments

[[pytb]]

Syntax highlighting for Python Traceback using Pygments

[[gas]]

Syntax highlighting for GAS using Pygments

[[gap]]

Syntax highlighting for GAP using Pygments

[[javascript+spitfire]]

Syntax highlighting for JavaScript?+Cheetah using Pygments

[[debsources]]

Syntax highlighting for Debian Sourcelist using Pygments

[[cpp-objdump]]

Syntax highlighting for cpp-objdump using Pygments

[[ruby]]

Syntax highlighting for Ruby using Pygments

[[parasail]]

Syntax highlighting for ParaSail? using Pygments

[[cypher]]

Syntax highlighting for Cypher using Pygments

[[isabelle]]

Syntax highlighting for Isabelle using Pygments

[[cxx-objdump]]

Syntax highlighting for cpp-objdump using Pygments

[[batch]]

Syntax highlighting for Batchfile using Pygments

[[sls]]

Syntax highlighting for YAML+Jinja using Pygments

[[nemerle]]

Syntax highlighting for Nemerle using Pygments

[[xml+erb]]

Syntax highlighting for XML+Ruby using Pygments

[[vb.net]]

Syntax highlighting for VB.net using Pygments

[[qvto]]

Syntax highlighting for QVTO using Pygments

[[prolog]]

Syntax highlighting for Prolog using Pygments

[[vapi]]

Syntax highlighting for Vala using Pygments

[[squid]]

Syntax highlighting for SquidConf? using Pygments

[[literate-idris]]

Syntax highlighting for Literate Idris using Pygments

[[postgres-console]]

Syntax highlighting for PostgreSQL console (psql) using Pygments

[[ik]]

Syntax highlighting for Ioke using Pygments

[[xml+cheetah]]

Syntax highlighting for XML+Cheetah using Pygments

[[cobol]]

Syntax highlighting for COBOL using Pygments

[[modula2]]

Syntax highlighting for Modula-2 using Pygments

[[io]]

Syntax highlighting for Io using Pygments

[[smalltalk]]

Syntax highlighting for Smalltalk using Pygments

[[hylang]]

Syntax highlighting for Hy using Pygments

[[mako]]

Syntax highlighting for Mako using Pygments

[[lcryptol]]

Syntax highlighting for Literate Cryptol using Pygments

[[pas]]

Syntax highlighting for Delphi using Pygments

[[proto]]

Syntax highlighting for Protocol Buffer using Pygments

[[xml+kid]]

Syntax highlighting for Genshi using Pygments

[[make]]

Syntax highlighting for Makefile using Pygments

[[minid]]

Syntax highlighting for MiniD using Pygments

[[coffeescript]]

Syntax highlighting for CoffeeScript? using Pygments

[[html]]

Syntax highlighting for HTML using Pygments

[[sqlite3]]

Syntax highlighting for sqlite3con using Pygments

[[systemverilog]]

Syntax highlighting for systemverilog using Pygments

[[vgl]]

Syntax highlighting for VGL using Pygments

[[html+mako]]

Syntax highlighting for HTML+Mako using Pygments

[[http]]

Syntax highlighting for HTTP using Pygments

[[nim]]

Syntax highlighting for Nimrod using Pygments

[[i7]]

Syntax highlighting for Inform 7 using Pygments

[[i6]]

Syntax highlighting for Inform 6 using Pygments

[[nix]]

Syntax highlighting for Nix using Pygments

[[cucumber]]

Syntax highlighting for Gherkin using Pygments

[[mq4]]

Syntax highlighting for MQL using Pygments

[[objc++]]

Syntax highlighting for Objective-C++ using Pygments

[[idris]]

Syntax highlighting for Idris using Pygments

[[php]]

Syntax highlighting for PHP using Pygments

[[antlr-c#]]

Syntax highlighting for ANTLR With C# Target using Pygments

[[nesc]]

Syntax highlighting for nesC using Pygments

[[nit]]

Syntax highlighting for Nit using Pygments

[[kid]]

Syntax highlighting for Genshi using Pygments

[[javascript+lasso]]

Syntax highlighting for JavaScript?+Lasso using Pygments

[[dylan]]

Syntax highlighting for Dylan using Pygments

[[gst]]

Syntax highlighting for Gosu Template using Pygments

[[docker]]

Syntax highlighting for Docker using Pygments

[[fishshell]]

Syntax highlighting for Fish using Pygments

[[ragel-java]]

Syntax highlighting for Ragel in Java Host using Pygments

[[coffee-script]]

Syntax highlighting for CoffeeScript? using Pygments

[[less]]

Syntax highlighting for LessCss? using Pygments

[[antlr]]

Syntax highlighting for ANTLR using Pygments

[[rebol]]

Syntax highlighting for REBOL using Pygments

[[rest]]

Syntax highlighting for reStructuredText using Pygments

[[html+ruby]]

Syntax highlighting for RHTML using Pygments

[[newspeak]]

Syntax highlighting for Newspeak using Pygments

[[html+kid]]

Syntax highlighting for HTML+Genshi using Pygments

[[genshi]]

Syntax highlighting for Genshi using Pygments

[[mysql]]

Syntax highlighting for MySQL using Pygments

[[ps1]]

Syntax highlighting for PowerShell? using Pygments

[[lasso]]

Syntax highlighting for Lasso using Pygments

[[clipper]]

Syntax highlighting for FoxPro? using Pygments

[[javascript+genshitext]]

Syntax highlighting for JavaScript?+Genshi Text using Pygments

[[console]]

Syntax highlighting for Bash Session using Pygments

[[jinja]]

Syntax highlighting for Django/Jinja using Pygments

[[elm]]

Syntax highlighting for Elm using Pygments

[[restructuredtext]]

Syntax highlighting for reStructuredText using Pygments

[[hxml]]

Syntax highlighting for Hxml using Pygments

[[chpl]]

Syntax highlighting for Chapel using Pygments

[[ada]]

Syntax highlighting for Ada using Pygments

[[adl]]

Syntax highlighting for ADL using Pygments

[[bnf]]

Syntax highlighting for BNF using Pygments

[[literate-cryptol]]

Syntax highlighting for Literate Cryptol using Pygments

[[swig]]

Syntax highlighting for SWIG using Pygments

[[xqy]]

Syntax highlighting for XQuery using Pygments

[[dart]]

Syntax highlighting for Dart using Pygments

[[nginx]]

Syntax highlighting for Nginx configuration file using Pygments

[[moo]]

Syntax highlighting for MOOCode using Pygments

[[opa]]

Syntax highlighting for Opa using Pygments

[[antlr-actionscript]]

Syntax highlighting for ANTLR With ActionScript? Target using Pygments

[[js+genshitext]]

Syntax highlighting for JavaScript?+Genshi Text using Pygments

[[nimrod]]

Syntax highlighting for Nimrod using Pygments

[[python3]]

Syntax highlighting for Python 3 using Pygments

[[literate-agda]]

Syntax highlighting for Literate Agda using Pygments

[[matlabsession]]

Syntax highlighting for Matlab session using Pygments

[[d]]

Syntax highlighting for D using Pygments

[[xquery]]

Syntax highlighting for XQuery using Pygments

[[clay]]

Syntax highlighting for Clay using Pygments

[[pl6]]

Syntax highlighting for Perl6 using Pygments

[[shen]]

Syntax highlighting for Shen using Pygments

[[html+php]]

Syntax highlighting for HTML+PHP using Pygments

[[llvm]]

Syntax highlighting for LLVM using Pygments

[[html+jinja]]

Syntax highlighting for HTML+Django/Jinja using Pygments

[[csound-orc]]

Syntax highlighting for Csound Orchestra using Pygments

[[javascript+ruby]]

Syntax highlighting for JavaScript?+Ruby using Pygments

[[twig]]

Syntax highlighting for Twig using Pygments

[[html+django]]

Syntax highlighting for HTML+Django/Jinja using Pygments

[[duby]]

Syntax highlighting for Ruby using Pygments

[[splus]]

Syntax highlighting for S using Pygments

[[scala]]

Syntax highlighting for Scala using Pygments

[[applescript]]

Syntax highlighting for AppleScript? using Pygments

[[lean]]

Syntax highlighting for Lean using Pygments

[[moon]]

Syntax highlighting for MoonScript? using Pygments

[[javascript+mako]]

Syntax highlighting for JavaScript?+Mako using Pygments

[[js+jinja]]

Syntax highlighting for JavaScript?+Django/Jinja using Pygments

[[pycon]]

Syntax highlighting for Python console session using Pygments

[[xten]]

Syntax highlighting for X10 using Pygments

[[bf]]

Syntax highlighting for Brainfuck using Pygments

[[javascript+cheetah]]

Syntax highlighting for JavaScript?+Cheetah using Pygments

[[posh]]

Syntax highlighting for PowerShell? using Pygments

[[bc]]

Syntax highlighting for BC using Pygments

[[pacmanconf]]

Syntax highlighting for PacmanConf? using Pygments

[[i6t]]

Syntax highlighting for Inform 6 template using Pygments

[[elixir]]

Syntax highlighting for Elixir using Pygments

[[java]]

Syntax highlighting for Java using Pygments

[[properties]]

Syntax highlighting for Properties using Pygments

[[pike]]

Syntax highlighting for Pike using Pygments

[[nixos]]

Syntax highlighting for Nix using Pygments

[[postgresql]]

Syntax highlighting for PostgreSQL SQL dialect using Pygments

[[winbatch]]

Syntax highlighting for Batchfile using Pygments

[[kotlin]]

Syntax highlighting for Kotlin using Pygments

[[idr]]

Syntax highlighting for Idris using Pygments

[[idl]]

Syntax highlighting for IDL using Pygments

[[cuda]]

Syntax highlighting for CUDA using Pygments

[[css+genshitext]]

Syntax highlighting for CSS+Genshi Text using Pygments

[[jsp]]

Syntax highlighting for Java Server Page using Pygments

[[clojure]]

Syntax highlighting for Clojure using Pygments

[[nsh]]

Syntax highlighting for NSIS using Pygments

[[nsi]]

Syntax highlighting for NSIS using Pygments

[[autohotkey]]

Syntax highlighting for autohotkey using Pygments

[[termcap]]

Syntax highlighting for Termcap using Pygments

[[csound-document]]

Syntax highlighting for Csound Document using Pygments

[[sql]]

Syntax highlighting for SQL using Pygments

[[ambienttalk/2]]

Syntax highlighting for AmbientTalk? using Pygments

[[js+genshi]]

Syntax highlighting for JavaScript?+Genshi Text using Pygments

[[smarty]]

Syntax highlighting for Smarty using Pygments

[[stan]]

Syntax highlighting for Stan using Pygments

[[haskell]]

Syntax highlighting for Haskell using Pygments

[[treetop]]

Syntax highlighting for Treetop using Pygments

[[tf]]

Syntax highlighting for Terraform using Pygments

[[xml+django]]

Syntax highlighting for XML+Django/Jinja using Pygments

[[js+django]]

Syntax highlighting for JavaScript?+Django/Jinja using Pygments

[[abnf]]

Syntax highlighting for ABNF using Pygments

[[js+mako]]

Syntax highlighting for JavaScript?+Mako using Pygments

[[lhaskell]]

Syntax highlighting for Literate Haskell using Pygments

[[objectivej]]

Syntax highlighting for Objective-J using Pygments

[[emacs]]

Syntax highlighting for EmacsLisp? using Pygments

[[groff]]

Syntax highlighting for Groff using Pygments

[[rhtml]]

Syntax highlighting for RHTML using Pygments

[[eg]]

Syntax highlighting for Earl Grey using Pygments

[[ragel-c]]

Syntax highlighting for Ragel in C Host using Pygments

[[hy]]

Syntax highlighting for Hybris using Pygments

[[ragel-d]]

Syntax highlighting for Ragel in D Host using Pygments

[[latex]]

Syntax highlighting for TeX using Pygments

[[hs]]

Syntax highlighting for Haskell using Pygments

[[js+php]]

Syntax highlighting for JavaScript?+PHP using Pygments

[[css+ruby]]

Syntax highlighting for CSS+Ruby using Pygments

[[jags]]

Syntax highlighting for JAGS using Pygments

[[objectivec]]

Syntax highlighting for Objective-C using Pygments

[[aspectj]]

Syntax highlighting for AspectJ using Pygments

[[groovy]]

Syntax highlighting for Groovy using Pygments

[[javascript+smarty]]

Syntax highlighting for JavaScript?+Smarty using Pygments

[[duel]]

Syntax highlighting for Duel using Pygments

[[ada2005]]

Syntax highlighting for Ada using Pygments

[[j]]

Syntax highlighting for J using Pygments

[[po]]

Syntax highlighting for Gettext Catalog using Pygments

[[aspx-cs]]

Syntax highlighting for aspx-cs using Pygments

[[csound-sco]]

Syntax highlighting for Csound Score using Pygments

[[blitzmax]]

Syntax highlighting for BlitzMax? using Pygments

[[powershell]]

Syntax highlighting for PowerShell? using Pygments

[[rust]]

Syntax highlighting for Rust using Pygments

[[evoque]]

Syntax highlighting for Evoque using Pygments

[[felix]]

Syntax highlighting for Felix using Pygments

[[pig]]

Syntax highlighting for Pig using Pygments

[[postscript]]

Syntax highlighting for PostScript? using Pygments

[[as]]

Syntax highlighting for ActionScript? using Pygments

[[roboconf-graph]]

Syntax highlighting for Roboconf Graph using Pygments

[[at]]

Syntax highlighting for AmbientTalk? using Pygments

[[winbugs]]

Syntax highlighting for BUGS using Pygments

[[haml]]

Syntax highlighting for Haml using Pygments

[[objective-j]]

Syntax highlighting for Objective-J using Pygments

[[objective-c]]

Syntax highlighting for Objective-C using Pygments

[[json-ld]]

Syntax highlighting for JSON-LD using Pygments

[[cmake]]

Syntax highlighting for CMake using Pygments

[[gnuplot]]

Syntax highlighting for Gnuplot using Pygments

[[javascript+jinja]]

Syntax highlighting for JavaScript?+Django/Jinja using Pygments

[[nb]]

Syntax highlighting for Mathematica using Pygments

[[mathematica]]

Syntax highlighting for Mathematica using Pygments

[[flx]]

Syntax highlighting for Felix using Pygments

[[supercollider]]

Syntax highlighting for SuperCollider? using Pygments

[[sourceslist]]

Syntax highlighting for Debian Sourcelist using Pygments

[[jcl]]

Syntax highlighting for JCL using Pygments

[[php5]]

Syntax highlighting for PHP using Pygments

[[hybris]]

Syntax highlighting for Hybris using Pygments

[[bmax]]

Syntax highlighting for BlitzMax? using Pygments

[[dylan-repl]]

Syntax highlighting for Dylan session using Pygments

[[php3]]

Syntax highlighting for PHP using Pygments

[[d-objdump]]

Syntax highlighting for d-objdump using Pygments

[[componentpascal]]

Syntax highlighting for Component Pascal using Pygments

[[eiffel]]

Syntax highlighting for Eiffel using Pygments

[[obj-c++]]

Syntax highlighting for Objective-C++ using Pygments

[[registry]]

Syntax highlighting for reg using Pygments

[[velocity]]

Syntax highlighting for Velocity using Pygments

[[squeak]]

Syntax highlighting for Smalltalk using Pygments

[[rql]]

Syntax highlighting for RQL using Pygments

[[xml+jinja]]

Syntax highlighting for XML+Django/Jinja using Pygments

[[c++-objdumb]]

Syntax highlighting for cpp-objdump using Pygments

[[sass]]

Syntax highlighting for Sass using Pygments

[[xml+php]]

Syntax highlighting for XML+PHP using Pygments

[[mask]]

Syntax highlighting for Mask using Pygments

[[antlr-rb]]

Syntax highlighting for ANTLR With Ruby Target using Pygments

[[cpp]]

Syntax highlighting for C++ using Pygments

[[nasm]]

Syntax highlighting for NASM using Pygments

[[ProjectInfo]]
Error: Can't get description for macro ProjectInfo
global name 'inspect' is not defined
[[docs]]
Error: Can't get description for macro docs
global name 'inspect' is not defined
[[TracAdminHelp]]

Displays help for trac-admin commands.

Examples:

[[TracAdminHelp]]               # all commands
[[TracAdminHelp(wiki)]]         # all wiki commands
[[TracAdminHelp(wiki export)]]  # the "wiki export" command
[[TracAdminHelp(upgrade)]]      # the upgrade command
[[TicketQuery]]

Macro that lists tickets that match certain criteria.

This macro accepts two parameters, the second of which is optional.

The first parameter is the query itself, and uses the same syntax as for query: wiki links (but not the variant syntax starting with "?").

The second parameter determines how the list of tickets is presented: the default presentation is to list the ticket ID next to the summary, with each ticket on a separate line. If the second parameter is given, it must be one of:

  • compact -- the tickets are presented as a comma-separated list of ticket IDs.
  • count -- only the count of matching tickets is displayed
[[InterWiki]]

Provide a description list for the known InterWiki prefixes.

Macros from around the world

The Trac Project has a section dedicated to user-contributed macros, MacroBazaar. If you're looking for new macros, or have written new ones to share with the world, don't hesitate adding it to the MacroBazaar wiki page.


Developing Custom Macros

Macros, like Trac itself, are written in the Python programming language. They are very simple modules, identified by the filename and should contain a single entry point function. Trac will display the returned data inserted into the HTML where the macro was called.

It's easiest to learn from an example:

# MyMacro.py -- The world's simplest macro

def execute(hdf, args, env):
    return "Hello World called with args: %s" % args

You can also use the environment (env) object, for example to access configuration data and the database, for example:

def execute(hdf, txt, env):
    return env.get_config('trac', 'repository_dir')

Note that since version 0.9, wiki macros can also be written as TracPlugins. This gives them some capabilities than “classic” macros do not have, such as directly access the HTTP request.

For more information about developing macros, see the development resources on the main project site.


See also: WikiProcessors, WikiFormatting, TracGuide