GeSHi tags are not stripped

GeSHi tags are not stripped

by Philip Stefanov -
Number of replies: 2
Hello all,

This is my first post in here. I have just installed Moodle today,
started playing around and already came across my first problem :D
With GeSHi filter + TinyMCE editor - GeSHi tags are visible in my code cant figure out why...
also option linenumbers="yes" is not working.
I have this option on
Remove HTML tags from all activity names formatstringstriptags
Default: Yes

and my code looks like:

Attachment test.jpg
Average of ratings: -
In reply to Philip Stefanov

Re: GeSHi tags are not stripped

by Colin Fraser -
Picture of Documentation writers Picture of Testers

That is not a little problem, this is something not supported I expect. AFAIK, the GeSHi filter has never been supported in Moodle...  I might be wrong, but if it isn't then the strings are not being recognized, so are rendered as normal text. 

If you are trying to activate the for loop in your document.... well GLWTOB!

If you are just trying to demo some code for someone as an example, then just try the simple <code> </code> tag... that might be more effective. 


In reply to Colin Fraser

Re: GeSHi tags are not stripped

by Philip Stefanov -

Hello, i did try with <code> </code> tag and isn't working. I found and install another plugin rj_insertcode
Required Installation Steps
  TinyMCE 3.x
    1) Unzip the .zip file containing the plugin.
    2) Copy the rj_insertcode folder into the TinyMCE plugins folder.
    3) Register the plugin during your call to tinyMCE.Init().
       a) Add 'rj_insertcode' to the plugins list. For example
          plugins: "myPlugin1, myPlugin2, rj_insertcode"
       b) Add 'rj_insertcode' to a toolbar row in the theme list. For example
          theme_advanced_buttons1: "myButton1, myButton2, rj_insertcode"

But can't display the new button on my icon bar...

I found theme_advanced_buttons1 in \moodle\lib\editor\tinymce\lib.php file 


            // At least one line is required.
            $params['theme_advanced_buttons1'] = 'rj_insertcode';

Also i have 2 plugin folders:

\moodle\lib\editor\tinymce\plugins - with 10 plugins where i placed rj_insertcode folder
adn another one with more plugins inside total 39
\moodle\lib\editor\tinymce\tiny_mce\3.5.10\plugins


Ok guys what are you using for code highlight ? I already spend couple of hours trying to enable it...

Attachment Clipboard01.jpg
Attachment Clipboard02.jpg