CODE{"language"} -- format and syntax highlight code fragments

  • The %CODE{}% and %ENDCODE% variables is handled by the BeautifierPlugin.
  • Syntax: %CODE{"language"}% ...code... %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:                   • Expands to:
    %CODE{"cpp"}%
    void foo() {
      print("Do stuff.\n");
    }
    %ENDCODE%
    void foo() {
            print("Do stuff.\n");
    } 
  • Category: FormattingAndRenderingVariables , UIAndVisualizationVariables
  • Related: BeautifierPlugin







 
  • Suche in Topic-Namen

  • Suche in Topic-Inhalten
This site is powered by the TWiki collaboration platform Powered by Perl