Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to show code snippet on ASP.NET page with color formatting

Tags:

asp.net

I want to show code in asp.net page , how to show code snippet that it will look in same colors as it looks in visual studio , best examlple i can give is this stackoverflow.com itself we can put code fragment in our question which looks well colored giving better user exprience

i have just no clue ? also how to store code snippets when user enters them ?

like image 792
Ajay Kelkar Avatar asked Jan 19 '26 06:01

Ajay Kelkar


1 Answers

You probably want to start with Google Prettify which is the same code coloring tool used here on Stack Overflow.

like image 187
Neil N Avatar answered Jan 20 '26 19:01

Neil N



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!