on 01-25-2007 8:41 AM
Hi all,
I'm writing my first SDN blog. In the blog I have a code snippet, but I haven't found out how to highlight the syntax as it is possible in the forum. Is it possible?
Thanks in advance for your help.
(Sorry if this is the wrong forum)
Best Regards,
marcel
1. copy ur code to a word document
2. save that file as web page, File-->save as -->web page
3. open the document
4. put the cursor on any line -->right click --> view source code
5.copy the same code and paste in the blog
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Then we can play around with the HTML tags
<b><b> </b> ---> for bold " all the tags are lost
<h1> </h1>--> for headings
<pre></pre>--> as suggested by eddie</b>
and so on , www.w3schools.com should help (u might be knowing)
Message was edited by:
Chandrasekhar Jagarlamudi
Message was edited by:
Chandrasekhar Jagarlamudi
Also don't forget:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is currently no way (out of testing) that allows for code highlighting the best thing to do is use the follow
<textarea cols="79" rows="10" readonly>
... your code here ...
</textarea>
Be sure to escape any < with < and > with >
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.