vermaseren / form

The FORM project for symbolic manipulation of very big expressions
GNU General Public License v3.0
982 stars 118 forks source link

Syntax highlighting for FORM #320

Open vsht opened 4 years ago

vsht commented 4 years ago

Dear all,

I'm wondering if there exists some list of editors/IDEs that can be readily extended to support syntax highligtning when working with FORM files?

Personally, I'm aware of

https://github.com/tueda/form.vim

for vim and I believe to have heard from some people that they wrote corresponding plugins for VS Code and Idea(?). But those are probably private.

From my side, some time ago I created a highlighter that works with Gedit, Gnome Builder and other tools using GtkSourceView

https://github.com/vsht/form.lang

IMHO syntax highlighting is enormously helpful when writing FORM programs but since FORM is such a specific language, it is clear that no mainstream editor is going to support it out-of-the-box.

So perhaps one could create a summary of what is already available or even encourage other people to share their private stuff for the benefit of other FORM users.

Cheers, Vladyslav

tueda commented 4 years ago

I think this is a good idea to have such a list of editor support and other tools. Perhaps also for a list of public programs/libraries, which may be very large, though. Probably we can start with a Wiki page; so I created a list here.

vsht commented 4 years ago

Please add also

https://github.com/benruijl/vscode-form

Cheers, Vladyslav

tueda commented 4 years ago

Thanks! I've just added vscode-form.

StHagel commented 1 year ago

Hey all, you can also add .frm as filetype in IntelliJ and similar IDEs (e.g. CLion) by going to File->Settings->Editor->File Types. There you can add all the keywords it should highlight. It can even highlight different keywords in up to 4 different colours, so you can for example have function and .sort be highlighted differently.

In case anyone finds a more elaborate plugin, which maybe even has things such as inline errors/warnings, I would be more than happy to know about them :) image

grozin commented 1 year ago

Please add emacs form mode Andrey

tueda commented 1 year ago

I added jl-wynen/form-mode. Thanks!