YAFLogo

dselinger
  • dselinger
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
9 years ago
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.

Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
9 years ago

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.

Originally Posted by: dselinger 

Hey if this is a used language i add it back in 2.2.1. it's now back in the source repository.

dselinger
  • dselinger
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
9 years ago
(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!