%CODE{}%
and %ENDCODE%
variables are handled by the SyntaxHighlightingPlugin.
%CODE{"language"}% ...code... %ENDCODE%
Parameter | Description | Default |
---|---|---|
"..." orlang="..." | Source language. Supported languages: ada , asm , awk , bash , changelog , cpp , csh , c , delphi , diffs , diff , diffu , dylan , eiffel , elisp , Name: , forth , fortran_pp , fortran , haskell , html , icon , idl , inf , javascript , java , ksh , lua , m4 , mail , makefile , matlab , nroff , oberon2 , objc , outline , oz , pascal , perl , php , postscript , pyrex , python , rfc , ruby , scheme , sh , skill , Smalltalk , sml , sql , states , synopsys , tcl , tcsh , tex , vba , verilog , vhdl , vrml , wmlscript , zsh | (none, required) |
num="..." | Show line numbers next to the source code. An integer indicates the start number. Also "on" and "off" | "off" |
step="..." | Increment line numbers with the given step. Negative numbers will decrement. | "1" |
style="..." | Style of box around the source code | light gray box |
numstyle="..." | Style of line number column | light brown box |
• Expands to: <sticky> %CODE{"cpp" num="on"}% void foo() { print("Do stuff.\n"); } %ENDCODE% </sticky> | %CODE{"cpp" num="on"}% void foo() { print("Do stuff.\n"); } %ENDCODE% |