Discussion:
KEEP_ALL_SPACES
Ralf Heckmann
2014-05-13 22:07:57 UTC
Permalink
Hi,

I want (1) to prevent WinEdt from cleaning up all multiple spaces to
single ones opening an ASCII-documents and (2) to keep all spaces in
ASCII-documents.

At the moment I have no ideas to realize (1).


To get (2) Default.ini contains

KEEP_ALL_SPACES=1
MODE_FILTER="*|ASCII;ANSI"


In Modes.ini I have
...
MODE="ASCII|*.*;*.txt;*.edt"
...
// Submodes
...
MODE=":TXT|*.txt"
...

But that does not do what I expected: Even when I create a new
ASCII-document I have to enable "Keep all Spaces" in "Document settings"
manually.

Can anybody give me a hint how to solve both problems?

Thanks in advance and best regards

Ralf
Karl Koeller
2014-05-14 07:03:38 UTC
Permalink
Post by Ralf Heckmann
Hi,
I want (1) to prevent WinEdt from cleaning up all multiple spaces to
single ones opening an ASCII-documents and (2) to keep all spaces in
ASCII-documents.
At the moment I have no ideas to realize (1).
To get (2) Default.ini contains
KEEP_ALL_SPACES=1
MODE_FILTER="*|ASCII;ANSI"
In Modes.ini I have
...
MODE="ASCII|*.*;*.txt;*.edt"
...
// Submodes
...
MODE=":TXT|*.txt"
...
But that does not do what I expected: Even when I create a new
ASCII-document I have to enable "Keep all Spaces" in "Document settings"
manually.
Can anybody give me a hint how to solve both problems?
Thanks in advance and best regards
Ralf
MODE_FILTER="*|ASCII;ANSI"

means "all but ASCII and ANSI"

so you should have

KEEP_ALL_SPACES=1
MODE_FILTER="*|ANSI"

if you want to obtain what you want (remember to reload Defaults.ini).

Note that already opened files are not affected by the change.

Regards,

Karl
Ralf Heckmann
2014-05-14 15:38:43 UTC
Permalink
Hello Karl,

thanks a lot; using WinEdt nearly exclusively for TeX I had not paid so
much attention to modes. Your advice was really helpful for me.

I should have been able to understand modes with the description in the
help files. However, I usually took them only for a quick look, but not
as a real alternative for a complete manual. I'll give them a second chance.

Regards,
Ralf
-----
sent: 14.05.2014 09:03
Post by Ralf Heckmann
Hi,
I want (1) to prevent WinEdt from cleaning up all multiple spaces to
single ones opening an ASCII-documents and (2) to keep all spaces in
ASCII-documents.
At the moment I have no ideas to realize (1).
To get (2) Default.ini contains
KEEP_ALL_SPACES=1
MODE_FILTER="*|ASCII;ANSI"
In Modes.ini I have
...
MODE="ASCII|*.*;*.txt;*.edt"
...
// Submodes
...
MODE=":TXT|*.txt"
...
But that does not do what I expected: Even when I create a new
ASCII-document I have to enable "Keep all Spaces" in "Document settings"
manually.
Can anybody give me a hint how to solve both problems?
Thanks in advance and best regards
Ralf
MODE_FILTER="*|ASCII;ANSI"
means "all but ASCII and ANSI"
so you should have
KEEP_ALL_SPACES=1
MODE_FILTER="*|ANSI"
if you want to obtain what you want (remember to reload Defaults.ini).
Note that already opened files are not affected by the change.
Regards,
Karl
Continue reading on narkive:
Loading...