[Pas2js] multiline string literals
Michael Van Canneyt
michael at freepascal.org
Wed Feb 20 15:01:32 CET 2019
On Wed, 20 Feb 2019, Mattias Gaertner via Pas2js wrote:
>
> On Wed, 20 Feb 2019 05:42:29 -0700 (MST)
> warleyalex via Pas2js <pas2js at lists.freepascal.org> wrote:
>
>> var s := #"
>> Lorem ipsum 'dolor' sit amet, consectetur adipiscing elit.
>> Duis l'ipsum odio, pretium ""hendrerit"" varius sed,
>> aliquet vitae elit.
>> Sed eu libero nec nisl ""malesuada"" dignissim.
>> ";
>
> How should line breaks be translated?
> Exclude, use source, Unix, Mac, Windows style?
>
> Why #" instead of #'?
>
> I often need multiline string literals too, but I hate to break my
> indentation. For example:
These problems are solved with the include directive. The file is included
as-is.
Michael.
More information about the Pas2js
mailing list