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

 

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

 

 

 

0
8 comments

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

 

0

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

0

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

 

0

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!

 

 

 

 

 

0

Which version are you on?

 

0

2020.3.6 ...    [i can not easily upgrade : / ]

0

The support to suppress spellchecking was added at a later version, I'm afraid.

0

Okay, i see. There is no other way to get rid of the spellchecker? Kind of workaround?

Thanks anyway Vaclav..

0

Please sign in to leave a comment.