[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 11:46:33 CEST 2019
> Michael Van Canneyt <michael at freepascal.org> hat am 4. Juli 2019 um 11:05 geschrieben:
>
>
>
>
> On Thu, 4 Jul 2019, Pascal Riekenberg wrote:
>
> >> 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.
>
> Well, first $INCLUDESTRINGFILE must be integrated in the compiler.
>
Sure!
> I proposed something similar in the past on the lazarus mailing list, to
> quote a block of text. I need it mainly for SQL statements.
>
> So I am all for this 'extension' :-)
>
Okay, nice project :-) I'll give it a try. I often need this for SQL, XML and any kind of
source code generators (COBOL, shell scripts, ...).
Pascal
More information about the fpc-devel
mailing list