Highlighting syntax errors in Sublime Text 2 - sublimetext2

In Sublime text 2 when I make an error like forget a ; or add an extra closing or opening tag there is no highlighting that tells me that I have made a mistake. Only after running the code will I know that a mistake was made. Is this normal for Sublime Text 2 or is it just me? If this is normal, is there any extension to fix this?

I use SublimeLinter which highlights potential errors in a number of languages when you save a file.

use one of this http://scottksmith.com/blog/2014/09/29/3-essential-sublime-text-plugins-for-node-and-javascript-developers/
I prefer jshint, hope to help!

Related

VSCode adding a new line for every element

I am fairly new to VsCode and HTML. I have it set to save on format and when I do it automatically places all elements on a new line. First of all, is this good practice? If so that's fine. If not, how do I stop it?
So I type this:
<p> My name is <b>Bob</b></p>
But it gets formatted to this:
<p>
My name is
<b>Bob</b>
</p>
Is it good practice to format code like this?
Seems like if the paragraph was really long with multiple elements within it then it could get quite confusing having a bunch of new lines right in the middle of the code.
If not then how do I stop VScode from formatting like this?
I have installed the prettier extension so I am not sure if its VScode or prettier that is actually making these changes.
Any help appreciated!
Thank you!
When you are in VSC, go to...
File > Preferences > Settings > Text Editor
Scroll down until you find:
Auto Indent and change full to none
maybe consider using prettier extension for formatting your code it take the load out of such indentation tasks..
Link to prettier extension LINK

Atom text editor write "highter than" symbol instead of colon, only in html?

How can I fix this bug? It only happens when I edit html so it's not the keyboard
As Tobias Krogh said in his reply, you most likely have the Autoclose-HTML package installed.
Go into it's settings and disable the keybindings for it.
That fixed the issue on my end, so hopefully it will for you as well.
its appear cuz of AutoClose-HTML Atom make double signs in tags like this < so you have to erase one of them "<" and it worked for me.

Sublime text bracket highlighting

I have downloaded sublime text 2 and sublime text 3 but cannot find how to enable bracket highlighting - am using windows - have searched the internet but those solutions are not applicable. Please help me. Thank you.
The aptly named BracketHighlighter plugin is very good not only for highlighting but also for other bracket-related operations.
An alternative to the BracketHighlighter plugin is to make a modification to your color scheme. You could add the following code to the settings section of your color scheme file:
<key>bracketsForeground</key>
<string>#00FFFF</string>
<key>bracketsOptions</key>
<string>foreground</string>
<key>bracketContentsForeground</key>
<string>#00FFFF</string>
<key>bracketContentsOptions</key>
<string>foreground</string>
And then you would get the following result:
Obviously you could change #00FFFF to whatever color you want.

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.

Extra < using auto complete in Sublime Text 2

I installed the All Autocomplete package in my Sublime Text 2 editor and everything works fine except when I type "<div" or something similar, the auto-complete box pops up, I select the one I want and hit enter and it adds "<<div></div>" with an extra "<" in the front of my tag. I have to go back and delete the extra "<" every time...(!)
I can't seem to resolve this issue. If I use the command CTRL+Space, the box pops up and I can select the tag I want and it does not include the extra tag but that messes with my flow.
Has anyone out there experienced this? Thanks for your help!
I've just installed the package and it seems to work fine for me.
I type <div and then hit Tab or Enter and it completes correctly.
The only thing I can think of is that the AllAutocomplete package is conflicting with another package/plugin you may have installed.
It seems to be a problem with Zen Coding. See here.
Unfortunately I tried all suggestions there, including peruvianidol's 'Packages/HTML/html_completions.py' solution, but haven't had any luck.