Click here to Skip to main content
15,885,941 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Is it possible to copy a visual studio code with its colours to the asp web page textbox or similar control. When it is copied to word, code preserves its colors but after paste to the textbox it has not html tag for colors.

Is there any tool to extract a code with colors as html to the text file that can be used or any idea how to do it (using regex to write a html color tag generating before html render or different idea).

Regards
Posted
Updated 17-Dec-10 6:00am
v2

1 solution

The out of the box textbox will not work because it has no understanding for markup, its just for text, hence the name textbox. If you want coloring and other formatting you need to use a rich textbox. There are a number of controls available for this.
 
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