#VarCODE ---+++ CODE{"language"} -- format and syntax highlight code fragments * The =%<nop>CODE{}%= and =%<nop>ENDCODE%= variables is handled by the BeautifierPlugin. * Syntax: =%<nop>CODE{"language"}% ...code... %<nop>ENDCODE%= * Parameters: | *Parameter* | *Description* | *Default* | | ="language"= | Beautify language. Available languages: =bash=, =c++=, =c#=, =java=, =javascript=, =lua=, =makefile=, =perl=, =plsql=, =php3=, =phython=, =scheme=, =tcl=, =html=, =xml=, =verilog=, =vhdl= | (none, required) | * Example: =<nop> <nop>= %BULLET% Expands to: <table><tr><td valign="top"> =%<nop>CODE{"cpp"}%= %BR% =void foo() {= %BR% =<nop> print("Do stuff.\n");= %BR% =}= %BR% =%<nop>ENDCODE%= </td><td></td><td valign="top"> %CODE{"cpp"}% void foo() { print("Do stuff.\n"); } %ENDCODE% </td></tr></table> * Category: FormattingAndRenderingVariables, UIAndVisualizationVariables * Related: BeautifierPlugin
This topic: TWiki
>
WebHome
>
TWikiVariables
>
VarCODE
Topic revision: r2 - 2020-11-22 - TWikiAdminUser
Copyright © 1999-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback
Note:
Please contribute updates to this topic on TWiki.org at
TWiki:TWiki.VarCODE
.