Author |
Message |
JR
|
Posted: Sun Jan 04, 2009 1:27 pm Post subject: How to display c# source code as code on webpage asp.net |
|
|
Hey i want to display some c# source code on a website so it would be coloured and nicely formatted. how would i be able to achieve that? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
rdrake
|
Posted: Sun Jan 04, 2009 1:54 pm Post subject: RE:How to display c# source code as code on webpage asp.net |
|
|
There are many tools online to do it for you. This one just requires you to wrap the output they give you in the pre tag and include a stylesheet.
Of course there are plenty more for you to chose from to find one you like best on Google. |
|
|
|
|
|
sjjoseph
|
Posted: Tue Jan 12, 2010 5:35 am Post subject: Re: How to display c# source code as code on webpage asp.net |
|
|
Hi JR,
If you are creating website in asp.net then just take one panel and paste the code which you want to show on website.
Then in font property of text you can modify the color or size of the text.
This is one way but you can search on net you will find manymore. |
|
|
|
|
|
|