Tags:
create new tag
view all tags

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

Physics WebpagesRHUL WebpagesCampus Connect • Royal Holloway, University of London, Egham, Surrey TW20 0EX; Tel/Fax +44 (0)1784 434455/437520

Topic revision: r0 - 02 Dec 2012 - TWikiContributor

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding RHUL Physics Department TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.VarCODE.