Support google-code-prettify language extensions
-
I need to highlight Matlab syntax in my blog. google-code-prettify supports Matlab as an extension (along with various other languages): https://github.com/google/code-prettify#for-which-languages-does-it-work
To enable extensions, you have to not only specify the language hint in your pre tag (lang-matlab), but you have to include the lang-matlab.js script in your document.
To enable this, WP Code Prettify would need to either add options in the settings dialog with checkboxes for each extension language to enable including the source file, or it would need to auto-detect each extension language and automatically include the script for that language.
This would be a nice feature to support, especially for those of us who don’t have access to modifying the source of our blog sites.
https://www.ads-software.com/plugins/wp-code-prettify/
- The topic ‘Support google-code-prettify language extensions’ is closed to new replies.