YAFLogo

dselinger
  • dselinger
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
8 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: 3.0.3
8 years ago
Originally Posted by: dselinger 

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.



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
8 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!
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button