Dot .Net Dilemmas
In yesterday's blog I was trying to show an entry in a web.config file and I couldn't get the "<" to be displayed correctly so, my output was displayed as:
compilation defaultlanguage="c#" debug="false"
when of course I wanted to display it as:
<compilation defaultlanguage="c#" debug="false">
Turns out to be very simple (once you know how)
< = <
> = >
So
<compilation defaultlanguage="c#" debug="false">
Would display as
<compilation defaultlanguage="c#" debug="false">
That's it.
Another you might need to use is:
" = "
And while I'm at it, if you want to actually display < and not < etc. on your blog:
Use & before the <
Wednesday, September 17, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment