Re: DOS line endings - how to cope with these?

Bert Wesarg <bert.wesarg-gM/[email protected]> Mon, 10 May 2010 14:59:53 +0200
Newsgroups gmane.editors.nedit.user
Message-ID <[email protected]>
On Mon, May 10, 2010 at 12:14, Helmut Jarausch
<[email protected]> wrote:
> Hi,
>
> is there any option to tell NEdit to mark (backlight) DOS line endings
> specially?
>
> Furthermore, I tried to remove these by replacing \r with nothing
> in Regex mode, but it didn't remove them.
> Is this a bug or is there an option for 'intelligent' line end
> handling somewhere.
>

I use this as my backlight preferences (in ~/.Xresources):

nedit*backlightCharTypes:
33-253,255:#e5e5e5;0-8,11-31,127,254:red;128-159:orange;9:#f0f0f0;10:green;160:#d8d8d8

The important part is this: 0-8,11-31,127,254:red;

This colors all control characters with background red, that includes the <cr>.

Selecting the '<cr>' and pasting into the replace dialog gives me the
possibility to remove all <cr>s. It works also with '\r' in the search
input field. I have tested these only with the regex search mode.

Regards,
Bert

> Many thanks for a hint,
> Helmut.
>
-- 
NEdit Discuss mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/discuss