Jump to content
  • Advertisement
Sign in to follow this  
Zaris

How do the code tags work

This topic is 3653 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
I was asking to see how I could get the same effect on my web site without having to program it myself.

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!