adding macro capability to editor
Hi,
can I extend an editor for my own language, so it gets macro capability?
If I had this, I could press ctrlshiftm in my own editor to create a macro, just as it is possible in the base language editor.
I have been trying for hours without success. Has anyone done this before and can tell me the steps I have to follow?
Thanks,
Matt
Please sign in to leave a comment.
Hello,
To create an editor with template capabilities you should generate a template editor first. If you look at our baseLanguage you will see in addition to an regular editor jetbrains.mps.baseLanguage.editor a template editor jetbrains.transformation.baseLanguage.editor. This editor is responsible for template editing.
To create template editor you have to:
Thanks, I have learned, that I need to generate code from the editor template model and not just generate the language.
Still I got a problem generating code from the template editor, since the template editor needs a Queries file that is not provided.
Please see the discussion in thread: http://intellij.net/forums/thread.jspa?threadID=206169&tstart=0