%ENDCODE%
macro and its companion %CODE%
macro are provided by the BeautifierPlugin and are used together to mark the beginning and ending of a code fragment to be beautifully displayed.
%CODE%
… %ENDCODE%
or %CODE{…}%
… %ENDCODE%
%CODE%
… %ENDCODE%
encapsulates a code fragment to be displayed using the default language syntax and CSS styling
%CODE{…}%
… %ENDCODE%
encapsulates a code fragment to be displayed allowing the language syntax and CSS styling to be overridden according to any parameters supplied
Parameter: | Description: | Default |
---|---|---|
"language" | The language syntax identifier | "cpp" |
css="URL" | The URL of a CSS stylesheet that extends the plugin's default styling for code fragments |
Language: | Identifier: | Language: | Identifier: | Language: | Identifier: | ||
---|---|---|---|---|---|---|---|
bash | "bash" | Lua | "lua" | Scheme | "scheme" | ||
C++ | "cpp" | Makefile | "makefile" | TCL | "tcl" | ||
C# | "csharp" | Perl | "perl" | Verilog | "verilog" | ||
HTML | "html" | PHP3 | "php3" | VHDL | "vhdl" | ||
Java | "java" | PL/SQL | "plsql" | XML | "xml" | ||
JavaScript | "javascript" | Python | "python" |
language
fragment"> div.BeautifierPlugin div.language.fragment
css="URL"
macro parameter or the BEAUTIFIERPLUGIN_CSS
preference setting. The final stylesheet specified is the one that will be used. If you wish to specify multiple customizations, combine all the CSS rules into a single stylesheet.