Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Proper way to add code to a post
Zeaks
New
I've searched these forums and have tried different ways to add code to a post such as using < code > tags like on here, but haven't figured it out. My sites have are based around questions that involve posting either php or css code sometimes js.
Most code displays ok by default, but some of it becomes hyperlinked. Is there a proper way to add code to a post?
Most code displays ok by default, but some of it becomes hyperlinked. Is there a proper way to add code to a post?
0
Comments
usually it's a pre tag with a lang attribute
There was an error rendering this rich post.
also: http://vanillaforums.org/addon/geshisyntaxhighlighter-plugin
That's a great plugin
There was an error rendering this rich post.
As for the pre and code classes. It's not theme related, seems to be doing it with any theme, even the default. I've disabled plugins, but didn't help. I'll check the vanilla version.
There was an error rendering this rich post.