用颜色提取代码 [英] code extract with colors

查看:117
本文介绍了用颜色提取代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



是否可以将带有颜色的Visual Studio代码复制到ASP网页文本框或类似控件中.将其复制到word时,代码保留其颜色,但是在粘贴到文本框后,它没有用于颜色的html标签.

是否有任何工具可以将颜色为html的代码提取到可以使用的文本文件中,或者有任何想法(使用正则表达式编写在html渲染之前生成的html颜色标签或其他想法).

关于

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

推荐答案

开箱即用的文本框将无法正常工作,因为它不了解标记,仅了解文本,因此不知道其名称.如果要着色和其他格式,则需要使用一个丰富的文本框.有许多控件可用于此.
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.


这篇关于用颜色提取代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆