Computer Science Canada

How to display c# source code as code on webpage asp.net

Author:  JR [ 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?

Author:  rdrake [ 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.

Author:  sjjoseph [ 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.


: