Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Sublime Text 2 How to view carriage return and line feed?

In notepad++ there is a toolbar button to switch on/off display of EOL characters, i.e. carriage return and line feed.

Can Sublime Text 2 do the similar thing?

like image 935
chance Avatar asked Aug 25 '12 21:08

chance


People also ask

How do you show carriage returns?

This character is commonly known as the 'Line Feed' or 'Newline Character'. CR (character : \r, Unicode : U+000D, ASCII : 13, hex : 0x0d) : This is simply the 'r' character. This character is commonly known as 'Carriage Return'.

Is line feed the same as carriage return?

A line feed means moving one line forward. The code is \n . A carriage return means moving the cursor to the beginning of the line.


1 Answers

In case anyone is here years later, I found success with the sublime package RawLineEdit.

  1. Install with Package Control
  2. Enter Raw Line Edit: Toggle into the command palette (via Ctrl+Shift+P)

Further documentation of features can be found in the User Guide.
Note that this package is only supported in Sublime Text 3.

like image 158
lanery Avatar answered Sep 23 '22 19:09

lanery