drupaldrupal-6syntax-highlightingfckeditorgeshi

Syntax Highlighting in Drupal


Which is the best module for Syntax Highligting in Drupal. I am using GeSHi for syntax highlighting my code. It was working fine then I installed a second module FCKeditor. Now GeSHi filter is not working with FCKeditor. Do anyone have any idea why these modules are not working together.

Thanks in advance.


Solution

  • There is a rather complete answer in this post.

    The post gives you some more details, but in essence is a matter of adding to the fckeditor.config.js file the following line:

    FCKConfig.ProtectedSource.Add( /<blockcode language[\s\S]*?<\/blockcode>/gi  );
    

    which essentially tells FCKeditor to leave the blockcode with syntax highlighting alone.

    You can find some more details on the compatibility issues by visiting the FCKeditor module issue page, filtered for geshi.

    Hope this helps!