[fpc-devel] Some thoughts on multi-line string support, and a possible syntax that I think is perfectly clean and Pascal-ish.

Pascal Riekenberg pascal at riekenberg.eu
Thu Jul 4 10:57:13 CEST 2019


> Michael Van Canneyt <michael at freepascal.org> hat am 4. Juli 2019 um 10:43 geschrieben:
> On Thu, 4 Jul 2019, Pascal Riekenberg wrote:
> > What about a Lazarus-Addon / Codetools extention that generates an old style
> > multi-line string from a selection and the other way around to make old style
> > multi-line strings editable again, so you can keep indention and trailing and
> > leading whitespaces and special characters.
> 
> This already exists.
> 
> Edit/Multipaste
> 

Oh, have never seen this! But i thought of a more convenient shortcut function:
a) if i a selection is present: build multi-line string from selection in old style format
b) if cursor is inside an old style multi-line string: open simple editor to edit and
regenerate multi-line string after editor is closed.

Perhaps a) could be extended/switched to generate external file and insert $INCLUDESTRINGFILE
directive.

Pascal


More information about the fpc-devel mailing list