Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Whenever I am postin something actually copying a c# code from visual studio. How come it shows the exact code preview I mean the color of the code like

C#
catch (Exception ex)
        {
            dverror.InnerHtml = Utility.GetExceptionMessage(ex);
        }


..please give a tutorial about that in asp.net
Posted

1 solution

No chance! :laugh:
It works, because a lot of effort has been put into making sure it does work - there is some serious code going on behind this. This is not a subject for beginners, or that can be easily summarised into a tutorial.

For a better idea, start here: CodeProject articles on Syntax Highlighting[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900