dselinger
  •  dselinger
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
2015-04-23T15:53:16Z
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
2015-04-25T12:54:57Z
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.
UserPostedImage
dselinger
  •  dselinger
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
2015-04-27T15:25:21Z
(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!

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

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved