开发者

How to add support for a new language in FlashDevelop?

I am interested in making a plugin for FlashDevelop to add support for another language. I am not too sure where I sh开发者_如何学JAVAould start. So any starting points, hint, tips, or advice would go down well.

There is a Plugin Development article on the FlashDevelop Wiki, but the section about adding support for new languages is just a "TODO". So this is less than helpful.

I guess there are a number of parts to "supporting" a language in FlashDevelop. Here is my list, but feel free to tell me if I've missed something:

  • Code Completion
  • Syntax Highlighting
  • Should appear in the "New Project" menu as a Template
  • Should add file type/template to the "Add->New" menu
  • Add the new project filetype (e.g. .as3proj, .as3proj, .hxproj).

So how do I do all of these things? Where do I even start? Are there any good resources, documentation, or basic examples to follow? Can all of this (including the project templates) be done inside one plugin?


Creating a custom language in FlashDevelop is easy once you get the hang of it. An example of creating a language for FlashDevelop would to look at the support for AS3 or even Haxe which can be found here here, all the support for languages end with context.

FlashDevelop deals with syntax highlighting for you while code completion is done by creating XML files.

Adding a template for your language is basically creating a zip file with a different extension. You can just copy the templates FlashDevelop comes with which are located in your installation folder and in the templates folder.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜