VB语法荧光笔 [英] VB syntax highlighter

查看:85
本文介绍了VB语法荧光笔的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有一个正在构建的应用程序,它要包含在桌面项目中
它基本上是一个脚本程序,处理以下代码:html,js,batch,asp和machine
我虽然会从html或批处理开始,因为它们最简单
我需要的是在<"之间转换所有内容. >"或将%",%"更改为蓝色,我想将引号中的所有内容更改为红色,并且将使用wmic和netsh之类的批处理命令im更改为绿色

我已经看到了一些用C语言编写的示例,但无法进行翻译和修饰以适合我的程序

我正在使用富文本框,并具有所有基本的rtf名称空间

确实需要某种可以在textchanged()中激活的东西

作为一个脚注,每个文本框都是我选择加载的代码类型的名称,我也处于Visual Studio 2008专业环境中,我可以使用IM建筑物中的语言进行编码,但到目前为止尚未完全摆脱vb的困扰

在此先感谢

so i have an application im building to include in a desktop project
its basically a scripting program dealing with the codes: html, js, batch, asp, and machine
i though i would start with the html or batch as they are easiest
what i need is to convert every thing between "<" ">" or "%" "%" into blue, i want to change everything in quotes into red, and the batch commands im using like wmic and netsh to be green

i have seen a few examples in C but couldnt translate and touch up to fit my program

i am using a rich text box and have all the basic rtf namespaces

really it needs to be something that will activate in textchanged()

as a footnote, each text box is name by which code type i choose to load, i am also in the visual studio 2008 professional enviroment, i can code in the languages im building but havent quite got the hang of vb as of yet

thanks in advance

推荐答案

网络上有大量示例,甚至有关CP的十几篇文章也是如此.您所要做的就是为Google提供"C#语法突出显示"或"vb.net语法突出显示".当然,有些会比其他的更好.
There''s a ton of examples out on the web, even about a dozen articles here on CP. All you have to do is Google for "C# syntax highlighting" or "vb.net syntax highlighting". Some, of course, are going to be better than others.


这是我见过的最好的一种:

用于语法突出显示的彩色文本框 [
This is the best one I''ve seen:

Fast Colored TextBox for Syntax Highlighting[^]

It''s also very easy to use.


这篇关于VB语法荧光笔的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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