Multiline Strings and MPS
Hi Community,
im just wondering what the suggested approach for handling multiline string literals (also in conjunction with baselang) ist. There are many posts and discussions in the forum regarding this topic. One could
- depend on slissions rich-text editor extensions [https://projects.itemis.de/nexus/content/repositories/mbeddr/com/mbeddr/platform/ or https://github.com/mbeddr/mbeddr.core/releases]
- built a Multiline-Stringliteral by using a StringLiteral for each line
- ?let the MPS Editor Wraph the StringLiteral?
Does anyone has information which way to go for a future-proof solution. What direction is recommended by jetbrains?
Looking for any form of suggestion,
Cheers Daniel
Please sign in to leave a comment.
Hi Daniel,
would the j.m.lang.text language suit your needs? It is basically Lines holding Words holding strings. The MultilineComment in BL can serve as an example of use.
Cheers,
Vaclav
Hi Vaclav,
thanks for your answer. I just switched to Lines / Words of j.m.lang.text. Indeed a very cool implementation for multiline text. The expected editor behaviour when moving text to a new line and concatinating lines is nicely implemented. That s very helpful.
Just a last question: I get everything spellchecked. Disabled proofreading in Editor Inspections - but to no avail...
How can i get rid of the underlining? I m working on 2020.3.6 ...
Dan
Hi Dan,
easy help here - push the No_Spellcheck editor context hint in the editor that wraps the Lines (you need to add a dependency on j.m.lang.text.editor in your editor model).
Cheers,
Vaclav
Hi Vaclav,
just checked with CMD-R for the No_SpellCheck concept, but found it nowhere. Also the j.m.lang.text.editor does not contain a No_SpellCheck hint.
Am I missing something here? Thanks for your help!
Which version are you on?
2020.3.6 ... [i can not easily upgrade : / ]
The support to suppress spellchecking was added at a later version, I'm afraid.
Okay, i see. There is no other way to get rid of the spellchecker? Kind of workaround?
Thanks anyway Vaclav..