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

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?

In case anyone is here years later, I found success with the sublime package RawLineEdit.
Install with Package Control
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.

Sublime Text does not currently support displaying EOL characters.
http://sublimetext.userecho.com/topic/104394-is-it-possible-to-show-all-characters-spaces-tabs-cr-lf-etc/

There is a quick workaround, in the search, enable the Regular expression and the search value use \n. You will see all the line feed is highlighted.

05 2021
This might not really helpful for OP question and also the question is 8yrs old and iam assuming he must have got a answer pretty early on.
This is anyone still looking for the answer to show the carriage return in Sublime text 3.
As on May 2021 the current version is 3.2.2
Detailed version of #Sam YC answer
Tested in Sublime text 3
Press Ctrl+ F (Windows)
Select the first box 'Regular Expression (Alt+R)'
Also select 'Highlight matches' (Last box with plain border)
Enter \n
You should see something like this. If you do not see anything, just toggle the 'Highlight matches'.

There is another way to achieve this.
Go to preference -> choose "settings-user"
In the file opened paste this command.
"ensure_newline_at_eof_on_save": true

Related

VsCode Emmet Requires me to press Option+Esc to show up the sugession [duplicate]

This question already has answers here:
Some Emmet abbreviations in VSC not working, like '!' or using '*'
(8 answers)
Closed 8 months ago.
On HTML file, I usually press "!" and then the Emmet suggestion will appear for me to choose but after I updated VsCode 1.69, it doesn't show up anymore 1. This issue also appear when I try to use ul>li*5. I temporary press option+esc to show it like usual but I hate to do it many times.
Thanks for helping!
You need to check this option or put "emmet.triggerExpansionOnTab": true in settings.json to use the emmet abbreviation pressing TAB. I realized this ones what is not working:
!, lorem, >, and . Examples of use: ul>li, li3, ul>li*3
None of them shows the preview of the emmet, and you can't use them pressing TAB without enabling the option that I sayed above, and even checking the option you won't be able to see the previews, you'll need to know them by yourself and press the TAB even though nothing showing that it's a emmet abbreviation.
You can use CTRL + SPACE too.
Edition Windows 11 Pro Version 21H2
VSCODE Version 1.69.0

How to use sublime text 2 like notepad++

In Notepad ++ we can use Move to other view for copy/paste attributes easily . But How i use sublime text 2 like two windows at a time for copy/paste attributes easily ?
If I understood your question right you will find the answer by accessing sublime's menu View>Layout>... Columns

What is the equivalent Atom Indent Guides like in Brackets?

What is the equivalent Atom Indent Guides like the one Bracket has showing vertical lines connecting matching beginning/opening and ending/closing brackets or keywords?
Atom supports "Indent Guides" and even names it the same, you can access the configuration by choosing Settings View: Open from the Command Palette
or by pressing Ctrl-, (Control + Comma). Scroll about two-thirds of the way down and there is a checkbox to toggle the Indent Guide on or off:
When enabled they look like this in the editor:
Also found an "improved" package in Atom if Atom's indent-guide isn't cutting it.
https://atom.io/packages/indent-guide-improved
Repo seems to be updated.
UPDATE: show indent guide option is now under Editor tab, in settings.
Screenshot:
Haha. I encountered this issue today too. If I understand your question correctly, you want to know how to enable this feature?
Go to preferences/settings and then scroll down and check 'show indent guide'.
Example

Sublime text 2 convert html to javascript string

I just started to use the trial of Sublime text 2 and was wondering if there is any function or plugin for me to convert block of HTML to javascript string ?
I have try to search but couldn't find anything. Thanks!
Sublime text doesn't perform any parsing/converting functions, it's just a very pretty and useful text editor with various syntax highlighting, and as far as I'm aware most plugins for it are either for visual styles/highlighting or version control, not converting from one thing to another.
Saying that, if you want to convert HTML to a Javascript style string try this: http://www.accessify.com/tools-and-wizards/developer-tools/html-javascript-convertor/
K. L., I am also reading this book and I gone through the same situation. I am using Notepad++ and could not find a way of doing this conversion directly from the editor. Then, I decided to download and install the vim editor (http://www.vim.org/download.php) and I made the configuration suggested by the authors on pages 73-74. It worked fine. Maybe I will try to make it work on Notepad++ in the future, but, for now, I can continue my reading. Hope this helps.

Sublime Text 2 highlighting always disabled on trailing spaces plugin

In Sublime Text 2 I have installed the trailing spaces plugin, however the highlighting is always set to disabled.
if I toggle the highlight regions, by doing the following:
edit -> trailing spaces -> highlight regions
I always get the following:
highlighting of trailing spaces is disabled!
I have restarted sublime since the package install, but the toggle doesn't seem to work, does anyone know how to fix this issue?
Work around fix - not the solution to the problem
As for others it seems, i couldn't seem to get this trailing spaces to highlight no matter what i did, so what i did was remove the trailing spaces automatically on save. Not ideal but used to it now, works nicely.
Go to SublimeText 2 > Preferences > User Settings (or just hit the Mac Standard cmd + ,). This should open your User Settings as a JSON file. Add the following to your file
"trim_trailing_white_space_on_save": true
That's it. You're good to go.
I had this problem in Sublime Text 3.
I fixed it by deleting my trailing_spaces.sublime-settings file in the Sublime Text user package settings folder (which for me was %APPDATA%\Sublime Text 3\Packages\User) and reinstalling the plugin.
Some more discussion about this issue can be found on the plugin GitHub page here.
It's a known bug - see their Issues page on GitHub.
I was able to get it working by starting Sublime with a non-blank string value for the setting trailing_spaces_highlight_color
Open Preferences > Package Settings > Trailing Spaces > Settings - User
Replace:
"trailing_spaces_highlight_color": ""
With:
"trailing_spaces_highlight_color": "invalid"
Restart Sublime.
Edit > Trailing Spaces > Highlight Regions should work as expected now.
If you restart Sublime, "trailing_spaces_highlight_color" must not be a blank string, otherwise it will stop working again. Repeat the steps above to fix.
As long as Sublime is started with a non-blank string value for trailing_spaces_highlight_color, the toggle highlight regions works.
It looks like the plugin is caching the value in the setting file when Sublime loads. If you make changes to the settings file and toggle highlighting, the original value is restored. Which is why you need to restart Sublime for setting changes to take effect.