Extras catalogue

tGeSHi

Latest release 13 years ago (November 29, 2012).

tgeshi

  • By alexei912

About

PHP Syntax highlighter for MODx Revolution. Fully working snippet unlike GeSHI Syntax highlighter 0.1.0-rc2.Usage:[[tgeshi? &source=`[[*content]]`]]For example PHP syntax highlighting can be like this (in Visual Editor):<pre class="php">$foo = 45;for ( $i = 1; $i < $foo; $i++ ){  echo "$foo\n";  --$foo;}</pre>To use the line numbers add class 'line_number':<pre class="php ln">$foo = 45;for ( $i = 1; $i < $foo; $i++ ){  echo "$foo\n";  --$foo;}</pre>

  • GeSHI don't use the <code> tag.
  • Warning! To get rid of <br /> to use TinyMCE plugin 'prelementfix' (included in this package).

Installation & usage

The standard way to download and install this package.Open the template or output chunk of content. Enter the snippet call tGeSHi: [[tgeshi? &source=`[[*content]]`]]
The solution of the problem with the tag <br /> in TinyMCE:TinyMCE to not putting tags <br /> connect plugin preelementfix.To do this, edit the parameter tiny.custom_plugins, adding the preelementfix separated by commas.
For example: style,advimage,advlink,modxlink,searchreplace,print,contextmenu,paste,fullscreen,noneditable,nonbreaking,xhtmlxtras,visualchars,media,preelementfix

At a glance

MODX 3 compatibility unknown. Based on our testing and community reports where available.

  • Developer alexei912
  • Latest release November 29, 2012 (13 years ago)
  • First seen in SiteDash November 18, 2012 (13 years ago)
  • License GPLv2
  • MODX support 2.2 – 2.2
  • Databases MySQL , SQL Server

Releases 1 indexed release

Changelog
MODX.com

1.0-beta1

November 29, 2012

13 years ago

—