| Welcome to WebmasterWorld Guest from 126.96.36.199 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|Embedding non-compiled js or html in page|
| 5:40 pm on Sep 21, 2010 (gmt 0)|
i would like the ability to embed code in my blog posts. what is the commonly used object for this that does not compile contents?
please excuse if compile is not the correct word, but it best demonstrates my end goal.
| 7:14 am on Sep 22, 2010 (gmt 0)|
| 12:26 pm on Sep 22, 2010 (gmt 0)|
I assume what you mean is that you want to post HTML code in your blog to see but not be parsed as part of the page? So you can show code to others.
If this is the case are you using a CMS like Wordpress, a lot of the CMS packages out there already have a built in way to do this like [code][/code].
Personally I don't use any kind of technique but instead just use the html code for angle brackets, so the body tag would look like this:
I've never thought about it before but there's probably a script out there to do it too :)
EDIT: In fact, have a look here: [webmasterworld.com...]
| 2:26 pm on Sep 23, 2010 (gmt 0)|
thanks. i think i am definitely going to go with the < etc functionality. seems to be the best option.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved