简体   繁体   English

IDE 的可定制性

[英]Customizability of the IDEs

I am thinking of modifying an existing IDE (Ex: By developing a plugin) to provide support for a proprietary scripting language.我正在考虑修改现有的 IDE(例如:通过开发插件)以提供对专有脚本语言的支持。 I just need to implement few features like syntax highlighting, Autocompleting etc. (ie the requirements are really simple).我只需要实现一些功能,如语法突出显示、自动完成等(即要求非常简单)。 What would be the best IDE or Text editor to integrate the feature.集成该功能的最佳 IDE 或文本编辑器是什么。 As an example if I think to develop an eclipse plugin for that it would be a pain.例如,如果我想为此开发一个 eclipse 插件,那会很痛苦。

What do you think about Notepad ++?你觉得记事本++怎么样?

You might want to give the NetBeans Generic Language Framework a try.您可能想尝试一下 NetBeans通用语言框架

NetBeans project called Generic Languages Framework allows you to define a programming language and integrate it to NetBeans IDE. NetBeans 项目称为通用语言框架,允许您定义编程语言并将其集成到 NetBeans IDE。 In the first step you should describe the language - lexical part (define tokens using regular expressions) and syntax (grammar rules).在第一步中,您应该描述语言 - 词汇部分(使用正则表达式定义标记)和语法(语法规则)。 In the second step you can define how to visualize this language in NetBeans.在第二步中,您可以定义如何在 NetBeans 中可视化这种语言。 You can define colors for tokens (syntax coloring) or folding (based on grammar rules).您可以为标记(语法着色)或折叠(基于语法规则)定义 colors。 You can define what parts of this language should be displayed in the navigator, and how to indent this language plus many other features.您可以定义该语言的哪些部分应显示在导航器中,以及如何缩进该语言以及许多其他功能。

This tutorial should guide you through the process of creating new NetBeans module, adding languages support into it, describing lexical and syntax structure of your language and adding support for all standard editor # features for your language.本教程应指导您完成创建新 NetBeans 模块的过程,向其中添加语言支持,描述您的语言的词汇和语法结构,并为您的语言添加对所有标准编辑器功能的支持。

In vim you can easily add your custom syntax highlighting rules by adding another file in the syntax folder;在 vim 中,您可以通过在语法文件夹中添加另一个文件来轻松添加自定义语法突出显示规则; for the details it is best to look at the help.有关详细信息,最好查看帮助。

If I remember correctly notepad++ also allows defining custom syntax files.如果我没记错的话,notepad++ 也允许定义自定义语法文件。

Notepad++ allows you to define custom syntax highlight files in a very easy way, but it's not a very good solution for auto-completion (look at this SO question). Notepad++ 允许您以一种非常简单的方式定义自定义语法高亮文件,但它不是自动完成的一个很好的解决方案(看看这个SO question)。

If you want a real IDE to extend, I suggest you to use Eclipse .如果你想要一个真正的 IDE 来扩展,我建议你使用Eclipse

Update : Tutorial on how to develop an Eclipse plugin.更新:关于如何开发 Eclipse 插件的教程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM