Re: [Lazarus] Tool to convert a multiline text to a pascal string constant

2016-02-12 Thread Marco van de Voort
On Thu, Feb 11, 2016 at 11:08:12AM +0100, Michalis Kamburelis wrote: > Hm, I admit I simply didn't know about them long time ago, when creating > file_to_pascal_xxx utilities in PasDoc:) > > Looking at them now: > > 1. They both have quite longer code than our simple > file_to_pascal_string.dpr

Re: [Lazarus] Tool to convert a multiline text to a pascal string constant

2016-02-12 Thread Michael Van Canneyt
On Fri, 12 Feb 2016, Marco van de Voort wrote: On Thu, Feb 11, 2016 at 11:08:12AM +0100, Michalis Kamburelis wrote: Hm, I admit I simply didn't know about them long time ago, when creating file_to_pascal_xxx utilities in PasDoc:) Looking at them now: 1. They both have quite longer code

Re: [Lazarus] Tool to convert a multiline text to a pascal string constant

2016-02-11 Thread Michalis Kamburelis
Marco van de Voort wrote: > On Wed, Feb 03, 2016 at 07:07:46AM +0100, Michalis Kamburelis wrote: >> >> As part of PasDoc project we have developed simple file_to_pascal_string >> utility for this purpose. Just get >> http://svn.code.sf.net/p/pasdoc/code/trunk/source/tools/file_to_pascal_string.dpr

Re: [Lazarus] Tool to convert a multiline text to a pascal string constant

2016-02-11 Thread Michael Van Canneyt
On Thu, 11 Feb 2016, Michalis Kamburelis wrote: Marco van de Voort wrote: On Wed, Feb 03, 2016 at 07:07:46AM +0100, Michalis Kamburelis wrote: As part of PasDoc project we have developed simple file_to_pascal_string utility for this purpose. Just get

Re: [Lazarus] Tool to convert a multiline text to a pascal string constant

2016-02-07 Thread Marco van de Voort
On Wed, Feb 03, 2016 at 07:07:46AM +0100, Michalis Kamburelis wrote: > > As part of PasDoc project we have developed simple file_to_pascal_string > utility for this purpose. Just get > http://svn.code.sf.net/p/pasdoc/code/trunk/source/tools/file_to_pascal_string.dpr > and compile it. Kind of

Re: [Lazarus] Tool to convert a multiline text to a pascal string constant

2016-02-03 Thread Luiz Americo Pereira Camara
Thanks for all Getting time i will do a Lazarus extension Luiz Em 3 de fev de 2016 03:13, "Martin Schreiber" escreveu: > On Tuesday 02 February 2016 22:33:56 Luiz Americo Pereira Camara wrote: > > Hi is there any tool for Lazarus to convert a multi line text (xml > snipet, >

Re: [Lazarus] Tool to convert a multiline text to a pascal string constant

2016-02-03 Thread vfclists .
On 3 February 2016 at 11:30, Luiz Americo Pereira Camara < luizameri...@gmail.com> wrote: > Thanks for all > Getting time i will do a Lazarus extension > > Luiz > Em 3 de fev de 2016 03:13, "Martin Schreiber" > escreveu: > >> On Tuesday 02 February 2016 22:33:56 Luiz Americo

Re: [Lazarus] Tool to convert a multiline text to a pascal string constant

2016-02-02 Thread Luiz Americo Pereira Camara
2016-02-02 18:40 GMT-03:00 Dmitry Boyarintsev : > On Tue, Feb 2, 2016 at 4:33 PM, Luiz Americo Pereira Camara < > luizameri...@gmail.com> wrote: > >> Hi is there any tool for Lazarus to convert a multi line text (xml >> snipet, SQL) to a string constant? >> > >

[Lazarus] Tool to convert a multiline text to a pascal string constant

2016-02-02 Thread Luiz Americo Pereira Camara
Hi is there any tool for Lazarus to convert a multi line text (xml snipet, SQL) to a string constant? Currently i'm using the following regular expression http://regexr.com/3cna5 If some one knows a better regular expression that handles putting ';' instead of '+ LineEnding +' in last line

Re: [Lazarus] Tool to convert a multiline text to a pascal string constant

2016-02-02 Thread Bart
On 2/2/16, Luiz Americo Pereira Camara wrote: > Hi is there any tool for Lazarus to convert a multi line text (xml snipet, > SQL) to a string constant? > > Currently i'm using the following regular expression > Well, that's a lot shorter than the program I wrote to doo

Re: [Lazarus] Tool to convert a multiline text to a pascal string constant

2016-02-02 Thread Dmitry Boyarintsev
On Tue, Feb 2, 2016 at 4:33 PM, Luiz Americo Pereira Camara < luizameri...@gmail.com> wrote: > Hi is there any tool for Lazarus to convert a multi line text (xml snipet, > SQL) to a string constant? > Shouldn't there be something already in Lazarus itself that you could use? Back at the time

Re: [Lazarus] Tool to convert a multiline text to a pascal string constant

2016-02-02 Thread Michalis Kamburelis
Luiz Americo Pereira Camara wrote: > Hi is there any tool for Lazarus to convert a multi line text (xml > snipet, SQL) to a string constant? > > Currently i'm using the following regular expression > > http://regexr.com/3cna5 > > If some one knows a better regular expression that handles

Re: [Lazarus] Tool to convert a multiline text to a pascal string constant

2016-02-02 Thread Martin Schreiber
On Tuesday 02 February 2016 22:33:56 Luiz Americo Pereira Camara wrote: > Hi is there any tool for Lazarus to convert a multi line text (xml snipet, > SQL) to a string constant? > In MSEide select the text in source editor, RightClick-'Convert to Pascal string'. Code is here:

Re: [Lazarus] Tool to convert a multiline text to a pascal string constant

2016-02-02 Thread Graeme Geldenhuys
On 2016-02-02 21:33, Luiz Americo Pereira Camara wrote: > Hi is there any tool for Lazarus to convert a multi line text (xml snipet, > SQL) to a string constant? Yes, the tiSQLEditor (written for the tiOPF project) can do just that (and much more of course). It can convert text to the clipboard

Re: [Lazarus] Tool to convert a multiline text to a pascal string constant

2016-02-02 Thread Den
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: Const SOME_TEXT = {$INCLUDESTRINGFILE sometext.txt}; - Dennis On 2016-02-02 03:33 PM, Luiz Americo Pereira Camara wrote: Hi is there any tool for