• MODX.com

    1,995 downloads

GeSHI Syntax highlighter

GeSHI Syntax highlighter is an extra by lossendae, first released on 2010-10-29.

Package Description

  • Removed the plugin parsing ability which don't play nicely with cached resources.
  • You need to use the snippet to highlight your content.
  • Added line numbers options (false by default)

Usage/Installation 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).

Details

Developer(s)
lossendae
Released
2010-11-02
First seen
2010-10-29
License
GPLv2
Supported databases
Minimum MODX Requirement
2.0

GeSHI Syntax highlighter Releases

Vendor Signature Released on
MODX.com 0.1-rc2 2010-11-02 (14 years ago)