I have just finished with the syntax-highlighting plugin for Moodle 2.4. The plugin is based on the rjinsertcode plugin for tinymce done by Ryan Juckett.
Feel free to test it -> downloadupdated (12.03.2013)
have fun
Mario
14 thoughts on “Syntax highlighting plugin for Moodle 2.4”
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.
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?
Also purged caches, disabled Javascript caching, debug settings set to developer/display debug messages to Yes. No errors shown apart from screenshot 2.
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.
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.
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.
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…
I switched our moodle syntax-highlighting to a new module based on syntaxhl.
If you like you can download it from : http://meditprojects.cti.ac.at/download/syntaxhl.zip
The package consist of the tinymce plugin and the filter module.
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Doesn’t work in Moodle 2.51.
SITE ADMINISTRATION->PLUGINS->INSTALL ADD-ONS
Says invalid file format.
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
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
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
Mario,
Have been away for a few days. Thanks for your reply. Will try again and get back to you.
Kind Regards,
Alex
Hi Mario,
Have tried a completely clean install and still getting this issue. Screenshots can be seen at http://dev.conti-student.net/screen_1.png and http://dev.conti-student.net/screen_2.png
Also purged caches, disabled Javascript caching, debug settings set to developer/display debug messages to Yes. No errors shown apart from screenshot 2.
Alex
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.
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.
Do you have a “rj_get_lang_select.php” file in “lib/editor/tinymce/plugins/rj_insertcode/tinymce/php/” ?
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.
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…
You may find it easier (and more private) to email me directly – alex@alexsykes.net
The plugin no longer works. It has external dependencies (a javascript file) at some external URL that no longer exists.
Can this be fixed?
Hi Howard,
I switched our moodle syntax-highlighting to a new module based on syntaxhl.
If you like you can download it from : http://meditprojects.cti.ac.at/download/syntaxhl.zip
The package consist of the tinymce plugin and the filter module.
regards
Mario