Sign in to follow this  
Zaris

How do the code tags work

Recommended Posts

How does source lang="cpp" /source tags work? Were these tags built for gamedev or is the a something found on the web?

Share this post


Link to post
Share on other sites
They were built for GameDev, but virtually every piece of forum software has such "BBcode" (from Bulletin Board code) built into it. Generally, when a post is being formatted for display, the renderer will scan the source text for various tags and substitute output HTML for them.

Share this post


Link to post
Share on other sites
When you submit your post to the web site, a program on the server (imagine that! Programming behind the scenes of a programming forum!) searches for the codes within the text of your post, and translates them into HTML markup that achieves the desired corresponding effect.

Share this post


Link to post
Share on other sites
Ah, well in that case the technology behind GDNet's syntax highlighter isn't available, but fortunately there are plenty of other alternatives out there these days; you could try GeSHi or SyntaxHighlighter, or search for other options if neither of those seem suitable for your uses.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this