Jump to content
  • Advertisement
Sign in to follow this  
programwizard

[web] HTML Tags for Code?

This topic is 4887 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!