I'm not sure if you think this is a "code editor", but you can use gedit . You can create a new language definition and put it in the file "mylanguage.lang" and use it for coloring the syntax (see here ).
You can also create plugins for gedit to do more for your language, for example, build an AST or compile your code, etc. Plugins are written in Python (better or worse). Check out this page .
Here is one example of how neat Gedit plugins can be. This is a plugin for Gedit that interacts with Clang (C / C ++ / ObjC compiler) to give the programmer immediate warnings and errors for their code. Thus, you can create a plugin that can analyze your new language code and check for problems / suggest code completion, etc.
Although this may seem a little tedious, I donβt think you will find a ready-made solution to your problem. Since your language syntax is technically different from any other language (although it may be somewhat similar), you will not find an editor that magically knows your syntax. But if all you need is coloring the code, then Gedit is easy to configure. Unfortunately, more reliable editor functions are not so easy to do, but certainly possible!
Hassan
source share