That's not the point. (but it is not spam)
The point is you can write it as a multiline string.
You are doing it the "old" way, which is perfectly fine.
I Just demo'd the "new" way.
I might add that not everybody is quite happy with this feature,
including me, but Delphi has it.
In your case it would save a heck of a lot of add's....
{$ifdef fpc}{$mode delphi}{$endif}{$H+}
{$if fpc_fullversion <30301}{$error won't work in lower versions}{$endif}
uses classes;
var
s:string;
begin
s:=
'''
,
/,`\
` | \____\\
_( ) \
\-\~~~_|\ \
\ ` \ ` ` `
'''
;
writeln(s);
end.
Never mind the syntax highlight.... It works and less typing.
And yes, you can add that string to a TStringlist and it will still work... with one add.
{$ifdef fpc}{$mode delphi}{$endif}{$H+}
{$if fpc_fullversion <30301}{$error won't work in lower versions}{$endif}
uses classes;
var
s:string;
begin
s:=
'''
,
/,`\
` | \____\\
_( ) \
\-\~~~_|\ \
\ ` \ ` ` `
'''
;
with TStringlist.create do
try
add(s);
writeln(text);
finally
free;
end;
readln;
end.
Maybe the last example is a better way to explain it.
Of course this feature is more for the likes of html, xml, json and sql.
Anyway, it is one add instead of many....
Thanks to Akira and Michael for implementing it.