Page 1 of 1

Change line separator and encoding for current file.

Posted: Thu Nov 06, 2008 12:31 pm
by jelovirt
Is there a way to change the line separator and encoding of a text file being edited? There are global preferences for these, but can they be changed per file? If I my default line separator is Windows' CR LF and I create a new Shell file, I'd like to be able to change this to UNIX's LF.

This is a common feature in editors and many show it in the bottom status bar, along with current character and cursor location. Preferable it should be possible to change the line separator and encoding from the status bar by double clicking on the current value.

Re: Change line separator and encoding for current file.

Posted: Thu Nov 06, 2008 1:08 pm
by sorin_ristache
Hello,

Thank you for your request. We will consider allowing the user to change the line separator and the encoding at file level in a future version.


Regards,
Sorin

Re: Change line separator and encoding for current file.

Posted: Thu Nov 06, 2008 1:24 pm
by jelovirt
You could also add option to select whether to output BOM or not, so that the status bar would be something like:

Code: Select all


UTF-8 | Unix | BOM | U+0064 | 23:41 | Modified

Re: Change line separator and encoding for current file.

Posted: Thu Nov 06, 2008 1:41 pm
by sorin_ristache
We will consider adding the BOM too if the status bar has enough space for all these details. For example if I set a font size a little larger than default the status bar starts truncating some details.


Regards,
Sorin