Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 How to display c# source code as code on webpage asp.net
Index -> Web Design
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
JR




PostPosted: 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
Sponsor
sponsor
rdrake




PostPosted: 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




PostPosted: 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.
Display posts from previous:   
   Index -> Web Design
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: