Change line ending style in TextEditor?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Change line ending style in TextEditor?

Xin Wang
Hi all,


Is there any way to change default line ending in TextEditor? Currently it defaults to CR, which will mess up files in UNIX line ending style.


Thanks,
Xin Wang


Reply | Threaded
Open this post in threaded view
|

Re: Change line ending style in TextEditor?

timrowledge

> On 19-09-2016, at 6:27 PM, Xin Wang <[hidden email]> wrote:
>
> Hi all,
>
>
> Is there any way to change default line ending in TextEditor? Currently it defaults to CR, which will mess up files in UNIX line ending style.

Using LF instead of CR is an abomination unto Nuggan and shall be punished!

tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Liability: a valuable political skill



Reply | Threaded
Open this post in threaded view
|

Re: Change line ending style in TextEditor?

Xin Wang


2016-09-20 12:26 GMT+08:00 tim Rowledge <[hidden email]>:

> On 19-09-2016, at 6:27 PM, Xin Wang <[hidden email]> wrote:
>
> Hi all,
>
>
> Is there any way to change default line ending in TextEditor? Currently it defaults to CR, which will mess up files in UNIX line ending style.

Using LF instead of CR is an abomination unto Nuggan and shall be punished!


Could you elaborate?

 
tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Liability: a valuable political skill






Reply | Threaded
Open this post in threaded view
|

Re: Change line ending style in TextEditor?

Ben Coman
On Tue, Sep 20, 2016 at 12:51 PM, Xin Wang <[hidden email]> wrote:

>
>
> 2016-09-20 12:26 GMT+08:00 tim Rowledge <[hidden email]>:
>>
>>
>> > On 19-09-2016, at 6:27 PM, Xin Wang <[hidden email]> wrote:
>> >
>> > Hi all,
>> >
>> >
>> > Is there any way to change default line ending in TextEditor? Currently
>> > it defaults to CR, which will mess up files in UNIX line ending style.
>>
>> Using LF instead of CR is an abomination unto Nuggan and shall be
>> punished!
>>
>
> Could you elaborate?


Maybe humour??
http://wiki.lspace.org/mediawiki/Nuggan

Or maybe he's secretly a card carrying member of one of these ancient
churches...
Commodore 8-bit machines, Acorn BBC, ZX Spectrum, TRS-80, Apple II
family, Oberon, Mac OS up to version 9, MIT Lisp Machine and OS-9
https://en.wikipedia.org/wiki/Newline

bring out the holy hand grenade!
cheers -ben

Reply | Threaded
Open this post in threaded view
|

Re: Change line ending style in TextEditor?

timrowledge

> On 20-09-2016, at 2:04 AM, Ben Coman <[hidden email]> wrote:
>
> http://wiki.lspace.org/mediawiki/Nuggan

Exactly. If you haven’t read the Discworld books you a re missing out on one of life’s great treats.
But then, if you want to use LF instead of CR, maybe you don’t deserver such a treat ….

>
> Or maybe he's secretly a card carrying member of one of these ancient
> churches...
> Commodore 8-bit machines, Acorn BBC, ZX Spectrum, TRS-80, Apple II
> family, Oberon, Mac OS up to version 9, MIT Lisp Machine and OS-9

RISC OS is the one true OS. Do not mention the spekkies or amigroids to anyone in Polite Society or face being Shunned Forever!

>
> bring out the holy hand grenade!

What was that count again?


tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Strange OpCodes: MII: Mask all Interrupts and then Interrupt



Reply | Threaded
Open this post in threaded view
|

Re: Change line ending style in TextEditor?

Javier Diaz-Reinoso
In reply to this post by Xin Wang
This is probably not exactly what you want but you can adapt the code; is a small changes to the “workspace with content” menu in the File List window, this remember the correct name, directory and line ending of the document so it can save with the correct attributes:


> On Sep 19, 2016, at 20:27, Xin Wang <[hidden email]> wrote:
>
> Hi all,
>
>
> Is there any way to change default line ending in TextEditor? Currently it defaults to CR, which will mess up files in UNIX line ending style.
>
>
> Thanks,
> Xin Wang
>



BetterSaveWorkspace.5.cs.zip (1K) Download Attachment