Have you ever wanted to show some HTML code in your web site or in a post of your blog? For example in order to publish an HTML or web development tutorial.
If you just type the code, you get errors or the code is not displayed.
Solution: you have to use the "&-amp;lt" string (without minus sign!) instead of the "<" symbol in your code; and the "&-amp;gt" string (without minus sign!) instead of ">".
(Note. "lt" stands for "less than" while "gt" stands for "grater than") .
Searching the web I discovered a very nice, easy and light freeware program that automatically convert your HTML code in order to show it in a web site or blog. It's called "sHTMLc" and you can find it at:
http://hjem.get2net.dk/fec/shtmlc/shtmlc.html
Note! The program convert the content of the clipboard; so you have to highlight the code you desire to convert, copy it (CTRL-C on Windows), than choose the conversion options within the program screen, push to "Convert" and then paste (CTRL-V) the converted code on your web site or post.
P.S. On this same blog see also http://pelerin-voyageur.blogspot.com/2007/04/show-character-entities-on-web-site-or.html
Sunday, April 29, 2007
How to show HTML code in a web page or blog post
Pubblicato da
Pelerin-Voyageur
a
10:08 AM
Etichette: web and blog tricks
Subscribe to:
Post Comments (Atom)
0 commenti:
Post a Comment