kishou Posted January 26, 2008 Share Posted January 26, 2008 you know how in tutorials pages have like html code? well how do they use like html when its an html page? so like if you're making a tut and you want to show what code u put in. what tag do u use to it doesnt show the form it shows the code for the form? like how it doesnt actually do the code but just shows it.like how on this page: http://www.jgpws.com/tutorials/css/css_layout1.html Link to comment Share on other sites More sharing options...
mindcooler Posted January 26, 2008 Share Posted January 26, 2008 <pre> Link to comment Share on other sites More sharing options...
kishou Posted January 26, 2008 Author Share Posted January 26, 2008 <pre> thanks but it still shows the form. Link to comment Share on other sites More sharing options...
boen_robot Posted January 26, 2008 Share Posted January 26, 2008 If you look at the source code of such pages, you'll see that they use (X)HTML entities to do that. In particular, they escape (X)HTML's special symbols "<", ">" and "&" with "& lt;", "& gt;", and "& amp;" respectively.NOTE: Remove the space between the "&" and the name of the entity. I've added it because this board interprets entities. Link to comment Share on other sites More sharing options...
Ingolme Posted January 26, 2008 Share Posted January 26, 2008 NOTE: Remove the space between the "&" and the name of the entity. I've added it because this board interprets entities.If you want to show an entity ( < ) you can do it by adding the Ampersand entity next to it <Hmm, strangely, it's not interpetting my entities. Link to comment Share on other sites More sharing options...
boen_robot Posted January 26, 2008 Share Posted January 26, 2008 If you want to show an entity ( < ) you can do it by adding the Ampersand entity next to it <Hmm, strangely, it's not interpetting my entities.You'll see them interpreted if you try to edit your post. I almost always notice typos after I have posted something, and go to fix them. Because of that, I now have a habbit of never using entities directly. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.