homepage Welcome to WebmasterWorld Guest from 54.242.126.9
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Embedding non-compiled js or html in page
jason_m



 
Msg#: 4204900 posted 5:40 pm on Sep 21, 2010 (gmt 0)

hello,
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.

 

lammert

WebmasterWorld Senior Member lammert us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4204900 posted 7:14 am on Sep 22, 2010 (gmt 0)

If you don't want compiled code, maybe plain JavaScript is the right option? We have a specialized forum on JavaScript here: [webmasterworld.com...]

futureX

10+ Year Member



 
Msg#: 4204900 posted 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:

<body>

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...]

jason_m



 
Msg#: 4204900 posted 2:26 pm on Sep 23, 2010 (gmt 0)

@futureX

thanks. i think i am definitely going to go with the &lt etc functionality. seems to be the best option.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved