Does any one know how to disable the display of <CR> in a grey box when opening a file with different line endings. I don't want to resave the file with 'correct' line endings.
Maybe it should be tied into Show Invisibles menu command?
Thanks,
Dave.
--------------------------------------------------------------------- Intel Corporation (UK) Limited Registered No. 1134945 (England) Registered Office: Pipers Way, Swindon SN3 1RJ VAT No: 860 2173 47
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
On Jan 10, 2013, at 3:33 PM, "Baldwin, Dave" dave.baldwin@intel.com wrote:
Does any one know how to disable the display of <CR> in a grey box when opening a file with different line endings. I don't want to resave the file with 'correct' line endings.
You cannot hide CR characters.
I don’t understand your setup. You have CR’s in your file, you wish them to stay in the file, yet they do not indicate a linebreak and you want them to be invisible when editing the file.
I am browsing source code I don't own and a few of the files have CR characters and I just find them distracting. It is not a big deal but it seems to me they should be treated as invisible characters as you don¹t normally see them. I may be missunderstanding what the intent is here.
Good to see updates happening regularly again.
Dave.
On 10/01/2013 18:56, "Allan Odgaard" mailinglist@textmate.org wrote:
On Jan 10, 2013, at 3:33 PM, "Baldwin, Dave" dave.baldwin@intel.com wrote:
Does any one know how to disable the display of <CR> in a grey box when opening a file with different line endings. I don't want to resave the file with 'correct' line endings.
You cannot hide CR characters.
I don¹t understand your setup. You have CR¹s in your file, you wish them to stay in the file, yet they do not indicate a linebreak and you want them to be invisible when editing the file.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
--------------------------------------------------------------------- Intel Corporation (UK) Limited Registered No. 1134945 (England) Registered Office: Pipers Way, Swindon SN3 1RJ VAT No: 860 2173 47
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
On Jan 11, 2013, at 11:29 AM, "Baldwin, Dave" dave.baldwin@intel.com wrote:
I am browsing source code I don't own and a few of the files have CR characters and I just find them distracting. It is not a big deal but it seems to me they should be treated as invisible characters as you don¹t normally see them. I may be missunderstanding what the intent is here.
A file should either consistently use LF for line endings, CRLF, or (Classic Mac) CR.
If a file is not consistent in its use of line endings, TextMate will treat LF as a line end marker and leave <CR> as “editable” characters.
Editable characters should be visible, and it could be you have code like:
puts "Write to socket<CR><LF>"
Or maybe receive a patch that converts <LF> to <CR><LF> (maybe because the user who generated the patch was using Windows and forgot to ensure unix-style line endings).
In both cases you want to actually see the <CR> characters.