<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">I submitted a patch at one point that
never got accepted which uses {$INCLUDESTRINGFILE filename} and it
includes it as a string. So you could do:<br>
<br>
Const SOME_TEXT = {$INCLUDESTRINGFILE sometext.txt};<br>
<br>
- Dennis<br>
<br>
On 2016-02-02 03:33 PM, Luiz Americo Pereira Camara wrote:<br>
</div>
<blockquote
cite="mid:CA+nZ=yPnLdRi28wa+MjZax19eSyj=8MLgF2JGG7hJLBALvpiVw@mail.gmail.com"
type="cite">
<div dir="ltr">Hi is there any tool for Lazarus to convert a multi
line text (xml snipet, SQL) to a string constant?<br>
<div><br>
Currently i'm using the following regular expression<br>
<br>
<a moz-do-not-send="true" href="http://regexr.com/3cna5">http://regexr.com/3cna5</a><br>
<br>
</div>
<div>If some one knows a better regular expression that handles
putting ';' instead of '+ LineEnding +' in last line would
help also<br>
<br>
</div>
<div>Luiz<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">--
_______________________________________________
Lazarus mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
</pre>
</blockquote>
<br>
</body>
</html>