14 thoughts on “Syntax highlighting plugin for Moodle 2.4”

  1. Doesn’t work in Moodle 2.51.

    SITE ADMINISTRATION->PLUGINS->INSTALL ADD-ONS

    Says invalid file format.

    1. Hi sparky,

      Have you tried to copy the “sytaxhl” folder to “{moodle}\lib\editor\tinymce\plugins”
      I’ve just tested the “manual” install on a fresh 2.5.x without problems.

      regards

      Mario

  2. Hi Mario,
    A couple of issues with an install on M2.5.1+

    1) Editor loads OK and displays rj_insertcode icon. Click on icon and message ‘Problem retrieving data:Internal server error’

    2) The interface then appears with correct labels – except that the language drop-down does not appear.

    3) Insert button does not submit.

    Thanks, Alex

    1. Hi Alex,

      I have just installed the plugin on a fresh 2.5.1+. The interface opens without problems and the language drop-down is also there.
      Do you have any debug infos?

      regards

      Mario

  3. Mario,
    Have been away for a few days. Thanks for your reply. Will try again and get back to you.

    Kind Regards,
    Alex

    1. Hi Alex,

      Could you check if
      http://{your domain]/lib/editor/tinymce/plugins/rj_insertcode/tinymce/php/rj_get_lang_select.php
      is reachable and responses with language “option” tags.

      1. Not Found

        The requested URL /lib/editor/tinymce/plugins/rj_insertcode/tinymce/php/rj_get_lang_select.php is reachable and responses with language “option” tags. was not found on this server.

        Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

        1. Do you have a “rj_get_lang_select.php” file in “lib/editor/tinymce/plugins/rj_insertcode/tinymce/php/” ?

  4. This is getting confusing – and I’m supposed to be on holiday! Yes. the file does exist, but browsing it is giving a 500 error today. The full log entry follows.

    [Wed Aug 07 18:46:38 2013] [error] [client xx.40.xx.13] File does not exist: /home//public_html/dev/500.shtml
    [Wed Aug 07 18:46:38 2013] [error] [client xx.40.xx.13] SoftException in Application.cpp:256: File “/home//public_html/dev/lib/editor/tinymce/plugins/rj_insertcode/tinymce/php/rj_get_lang_select.php” is writeable by group

    It’s beginning to look like a server config error – but I’m not sure what.

  5. Sorry – the error log also had the domain/account name between the /home and public_html slashes but these seem to have been stripped from the submission…

  6. The plugin no longer works. It has external dependencies (a javascript file) at some external URL that no longer exists.

    Can this be fixed?

Leave a Reply

Your email address will not be published. Required fields are marked *