通过语法突出显示和智能感知向Visual Studio 2010添加新语言 [英] Add a new language to Visual Studio 2010 with syntax highlighting and intellisense

查看:109
本文介绍了通过语法突出显示和智能感知向Visual Studio 2010添加新语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Visual Studio 2010中添加对另一种语言的支持.我希望添加自定义语法突出显示功能,并且可以使用某种基本的智能感知功能.我尝试添加的语言是4J Genero(Informix-4GL的较新版本).我基本上只需要支持Genero/4GL中使用的.4gl和.per文件扩展名.有谁知道该怎么做,或者可以指出正确的方向?

I am trying to add support for a different language in Visual Studio 2010. I was hoping to add custom syntax highlighting, and have some sort of basic intellisense work with it. The language I am trying to add is 4Js Genero (a newer version of Informix-4GL). I basically just need support for the .4gl and .per file extensions that are used in Genero/4GL. Does anyone know how to do this, or can point me in the right direction?

推荐答案

这不是真的为胆小者准备的.不要低估了您必须投入的工作量.

It's not really for the faint of heart. Don't underestimate how much work you'll have to put in.

您将需要 Visual Studio 2010 SDK ,然后阅读(并重新阅读和重新阅读(*))有关

You'll need the Visual Studio 2010 SDK, and then to read (and re-read, and re-read(*)) all about Language Services

Visual Studio中语言服务的目的是为集成开发环境(IDE)中的源代码编辑提供特定于语言的支持.您将语言服务实现为VSPackage的一部分.

The purpose of a language service in Visual Studio is to provide language-specific support for editing source code in the integrated development environment (IDE). You implement a language service as part of a VSPackage.

(*)-除非对您立即有意义.

(*) - unless it all immediately makes sense to you.

这篇关于通过语法突出显示和智能感知向Visual Studio 2010添加新语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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