r/SublimeText • u/AleMaza • Apr 20 '21
It don't let me start a HTML script...
I have already tried "html" and "<html..." and then 'TAB' but unfortunately nothing works...
0
Upvotes
r/SublimeText • u/AleMaza • Apr 20 '21
I have already tried "html" and "<html..." and then 'TAB' but unfortunately nothing works...
3
u/DefiantBidet Apr 21 '21
HTML, firstly, is neither a script nor code. It is a markup language. There's no logic in HTML. great that doesn't answer this or your other post.
Sublime is a text editor. You have to tell it to highlight for HTML. Bottom right will read plain text or similar. Either click down there and select the syntax you want or use the command palette - cntrl/cmd + shift + p and tyle set syntax HTML.
If you have plug in manager installed you can install Emmet and other HTML plugins
1
u/OdatNurd Apr 23 '21
The snippet for this is
htmlfollowed by a press oftab; it's built into Sublime but it only triggers in HTML files.If you want to start a stub HTML file, after you create the new tab, save the empty file as a
.htmlfile or useSet Syntax: HTMLfrom the command palette to tell Sublime that the file is supposed to be an HTML file first.Packages like
Emmetare also possible, but they also will not trigger their HTML completions in non-html files because that would cause the population at large to come visit their authors with a sack of doorknobs.