YAFLogo

Posted by: dselinger - Thursday, 23 April 2015 17:53:16
I am looking to have python syntax highlighting support. I've upgraded from YAF 2.1.2, where the older style syntax highlighter was used - this referred to Python as Pyton in the drop down. With YAF 2.2.0, python is no longer a default option. For now, I have modified the jquery.ForumExtensions.min.js file inside the scripts folder to override the rules for code=sql with the style markup rules for Python, but I'd like to create a new entry or rename a currently used one. What are the necessary steps to do this? Thanks in advance.

Posted by: tha_watcha - Saturday, 25 April 2015 14:54:57
[quote=dselinger;65653]I am looking to have python syntax highlighting support. I've upgraded from YAF 2.1.2, where the older style syntax highlighter was used - this referred to Python as Pyton in the drop down. With YAF 2.2.0, python is no longer a default option. For now, I have modified the jquery.ForumExtensions.min.js file inside the scripts folder to override the rules for code=sql with the style markup rules for Python, but I'd like to create a new entry or rename a currently used one. What are the necessary steps to do this? Thanks in advance. [/quote] Hey if this is a used language i add it back in 2.2.1. it's now back in the source repository.

Posted by: dselinger - Monday, 27 April 2015 17:25:21
(Update Edit) So, I installed it and it seems to be working fine now. I originally ran into some issues, but this seems to be because of browser caching of the old javascript files. Thank you for the update!