Adding extensions to google syntax prettifer ? Posted in : Read WP hexaParticipant 1 September 2016 at 17:01 #43577 Hi, I would like to have code syntax highlighting for elisp, I see it’s possible with : https://github.com/google/code-prettify/blob/master/src/lang-lisp.js Would you know how best to add that to the prettify.js in the theme ? Thanks hexa hexaParticipant 1 September 2016 at 17:18 #43578 Nevermind I found out that you can download: https://raw.githubusercontent.com/google/code-prettify/master/distrib/prettify-small.tgz And that contains all the languages, just replacing the google-code-prettify with this one works fine. (Seen from: https://github.com/google/code-prettify/blob/master/docs/getting_started.md) hexaParticipant 1 September 2016 at 17:19 #43579 It would be nice if it would come with the theme however directly ? It would simplify upgrade, is that possible ? Thanks, hexa hexaParticipant 1 September 2016 at 18:07 #43580 Oops turns out I add to do a little more to get it working namely: Comment out pretty.js include in read/functions.php And add to external js section in the theme options: <script type=’text/javascript’ src=’https://XXXX/themes/read/js/google-code-prettify/prettify.js’></script> <script type=’text/javascript’ src=’https://XXXthemes/read/js/google-code-prettify/lang-lisp.js’></script> Please let me know if there’s a better way Thanks, hexa serkanModerator 1 September 2016 at 18:54 #43585 Hi Hexa, You can check out this related url and install a plugin for this feature which is suit to you instead of doing all those works. https://wordpress.org/plugins/tags/syntaxhighlighter Thanks Viewing 5 posts - 1 through 5 (of 5 total) You must be logged in and have valid license to reply to this topic. License required for the following item Read WP - Minimalist WordPress Blog Themeby pixelwars Login and Registration Log in · Register