Why do we only have PHP highlighting? I find many situation where I want to highlight code like Java, C#, or any other coding language for that matter, and I keep having to use PHP.
Yes, it's a small suggestion - but it will make a big difference, and not so hard to make.
What do you think?
Thanks, have a nice day.
I like this suggestion. Even when the highlighting of PHP works on C# mostly, too. There are might so many more languages people use, and the code tag is no solution.
You must be registered to see links
This BBCode works fine for my vBulletin forum.
The syntax highlighter is a good thing, but there are problems the mod creator could not get around: Every language got an own JS file for. The vb mod creator tried to resist loading all JS files on any page, so he decided to just load the specific file on the BB code itself. A user complained about this, because his/her forum had over 50 BB codes for one language in one page view, so it loaded the same JS file over 50 times into memory that causes loading lags.
We got the ability to view 100 posts in one page, so this mod can cause huge loading lags and will cause resource / traffic waste for sure. This mod needs a manual fix to avoid loading another same JS when having 2 BB codes of the same language in one page, just said.
I really love the syntax highlighter for this thing, but this mod was the only implementation I could find for it, sadly. The only useful alternative is a pastebin mod:
You must be registered to see links
However, this binds any user to pastebin, which is not useful, the user have to open a new tab and save it on pastebin before posting. =/