Jump to content
  • Advertisement
Sign in to follow this  
programwizard

[web] HTML Tags for Code?

This topic is 4770 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

Advertisement
Unfortunately not. The best thing you can do is put the code in a div and style the font accordingly. You will also need to do some server-side regex matching to color the text if you don't want to do it all by hand.

Share this post


Link to post
Share on other sites
<pre>, <code> and <tt> all have uses in displaying code in HTML. However, you still need to properly escape the text inside the tags.

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!