GeSHI Syntax highlighter
Creator: Stephane Boulard (lossendae)
About GeSHI Syntax highlighter
PHP Syntax highlighter for MODx Revolution.
Information
Released
November 2, 2010
Supported Database
MySQL
License
GPLv2
Supported Versions
2.0 - Current
Downloads
1,995
Instructions
Usage:
[[!GeSHI? &highlight=`[[+content]]`]]The GeSHI Snippet is output filter ready, so you can also use it like the following example:[[+content:GeSHI]] You can add line numbers by using the enable_line_numbers parameter[[GeSHI? &highlight=`[[*content]]` &enable_line_numbers=`1`]]The defaut theme is zenburnesque inspired by zenburn theme for vim.There is 2 other theme supplied:
- geshi
- Rdark
- zenburnesque (default)
To switch theme, go to MODx setting table and search for geshi.theme entry (filter by area -> geshi).