I always edit auto-completed tag for <script></script>
after typing <sc and auto-completed by <script type="text/javascript"></script>
.
The syntax <script type="text/javascript"></script>
is obsolete for HTML5. It’s quite waste of time.
Thanks.
How to customize auto complete for HTML tags?
omal
#1
0 Likes
deathaxe
#2
HTML completions are provided by a plugin.
Hitting tab twice and then enter after completion was commited, would remove the type attribute automatically.
1 Like
omal
#3
Thanks. I locates that plugin. And I understand that editing the sublime-package file directly is not recommended.
So here is the solution:
type <scr
select <script with up/down arrow key
press tab
then text/javascript is highlighted
press tab
then all attribute is highlighted
press delete
press tab
finally <script></script>
appears with a cursor between opening and closing tags!
0 Likes