Do you want to know how to show something like "<" too on your web site page or blog post? They are called character entities, and you can't show them "as is" because, if you just type them into your HTML code, the browser convert them into ">" symbols.
But you can use this notation:
"&-amp;lt" (without the minus sign!!) to show "<"
P.S. You can visit http://www.w3schools.com/ to read more about character entities.
PP.S. On this same blog you can see also: http://pelerin-voyageur.blogspot.com/2007/04/how-to-show-html-code-in-web-page-or.html
Sunday, April 29, 2007
Show Character Entities on a web site or blog post
Pubblicato da
Pelerin-Voyageur
a
10:42 AM
0
commenti
Etichette: web and blog tricks
How to show HTML code in a web page or blog post
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
Pubblicato da
Pelerin-Voyageur
a
10:08 AM
0
commenti
Etichette: web and blog tricks
How change the 'author' name on your blogs (Blogger - .blogspot.com)
Do you have different Blogger (blospot) blogs and you want to use different author names for your posts?
Open the "Template" options page and go to "Edit HTML". Check "Expand Widgets" and look in the code for the "class=post-footer-line" string (you can use CTRL-F in Firefox to find it). You will look at this code:
<p class="post-footer-line post-footer-line-1">
<span class="post-author">
<b:if cond="data:top.showAuthor">
<data:top.authorlabel> <data:post.author>
</data:post.author></data:top.authorlabel></b:if></span></p>
Now you can delete the string <data:post.author></data:post.author> and replace with the name or the nickname you want to use, i.e.
from:
<data:top.authorlabel> <data:post.author>
</data:post.author></data:top.authorlabel>
to:
<data:top.authorlabel> myname
</data:top.authorlabel>
You can do that for every blog you want to customize.
Enjoy! :)
Pubblicato da
Pelerin-Voyageur
a
9:34 AM
5
commenti
Etichette: web and blog tricks