Re: [BLACKBOX] Compile plain text files

From: [at]} <Frank>
Date: Wed, 11 May 2011 21:54:28 -0300

----boundary-LibPST-iamunique-61699817_-_-
Content-type: text/plain

On 05/08/2011 02:29 AM, Alexander Iljin wrote:
> Hello!
>
>>>> Is there a way to compile plain text files with any file name extension?
> FH> I want to work with pure ASCII texts, because this way I can use my
> FH> preferred editor and the difference tool of version control programs. I
> FH> would like to compile all modules of my program at once with
> FH> "DevCompiler.CompileThis ...", but this command accepts only a list of
> FH> basenames and requires files with extension "odc".
>
> So, you want a different default extension for the base name?
> In DevCompiler.CompileList find the line: "v := Views.OldView(loc, name);"
> and add "name := name + '.txt';" before that.
> After that all files will be open as plain text *.txt.

This generates .odc.txt extensions.
But "Strings.Replace (name, LEN(name$)-4, 4, '.txt');" works.

Thanks again for the hint.
-- 
Frank Hrebabetzky		+55 / 48 / 3235 1106
Florianopolis, Brazil
----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-61699817_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIE9uIDA1LzA4LzIwMTEgMDI6MjkgQU0sIEFsZXhh
bmRlciBJbGppbiB3cm90ZTpccGFyDQo+IEhlbGxvIVxwYXINCj5ccGFyDQo+Pj4+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W5zaW9ucy5ccGFyDQpCdXQgIlN0cmluZ3Mu
UmVwbGFjZSAobmFtZSwgTEVOKG5hbWUkKS00LCA0LCAnLnR4dCcpOyIgd29ya3MuXHBhcg0KXHBh
cg0KVGhhbmtzIGFnYWluIGZvciB0aGUgaGludC5ccGFyDQotLSBccGFyDQpGcmFuayBIcmViYWJl
dHpreVx0YWIgXHRhYiArNTUgLyA0OCAvIDMyMzUgMTEwNlxwYXINCkZsb3JpYW5vcG9saXMsIEJy
YXppbFxwYXINClxwYXINClxwYXINCi0tLS1ccGFyDQpUbyB1bnN1YnNjcmliZSwgc2VuZCBhIG1l
c3NhZ2Ugd2l0aCBib2R5ICJTSUdOT0ZGIEJMQUNLQk9YIiB0byBMSVNUU0VSVkBMSVNUUy5PQkVS
T04uQ0hccGFyDQp9
----boundary-LibPST-iamunique-61699817_-_---
Received on Thu May 12 2011 - 02:54:28 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:14 UTC