1

Sometimes we need to insert long text strings, especially if we have to hard code XML, Json or other technical structures in our code.

It would be helpful to keep the code readable if text literal could support multiline content.


For instance, instead of typing this:


myVar := 'line1'

+ 'line2'

+ 'line3';


We could type this :


myVar := 'line1

line2

line3';


Note : in this example, the result would not be exactly the same as the multiline example new line characters and spaces are supposed to be preserved.

As an inspiration for this, we could compare it with what Javascript offers: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#multi-line_strings


Category: Development
STATUS DETAILS
Needs Votes
Ideas Administrator

Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team