1
ockley
Syntax highlighting with GeSHi and FCK editor
  • 2008/9/3 18:33

  • ockley

  • Just popping in

  • Posts: 11

  • Since: 2005/10/6


May this is an obvious quiestion, but I can't make it work. I installed 2.3 RC2 and GeSHi should be implemented, but I can't get through to it

I tried [source lang=actionscript] but that just dissapears. and when I use FCKeditor with SmartSection 2.14 final i just wtires it plain out.

Anyone actually managed to have syntax highlighting in the modules "newbb" and "smartsection"

All the bestm and thanks in advance
/ockley

2
phppp
Re: Syntax highlighting with GeSHi and FCK editor
  • 2008/9/6 14:35

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


geshi highligher is a resource consumer and it could slow down your page loading thus geshi is not enabled by default.
To enable geshi, modify /class/textsanitizer/syntaxhighlight/config.php

return $config = array(
                
'highlight' => 'geshi',   // Source code highlight: '' - disable; 'php' - php highlight; 'geshi' - geshi highlight
                
'language'  => 'PHP',   // Default language for code highlight, applicable only if geshi is enabled
        
);

Login

Who's Online

407 user(s) are online (270 user(s) are browsing Support Forums)


Members: 0


Guests: 407


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits