css - Changing default HTML Tags in Sublime Text 3 -


i wanted ask, if there way, edit default tags come sublime text 3.

for example: when type <style , hit enter, sublime outputs me <style type="text/css"></style>, want <style></style>, without type="text/css", because want have slimmer, type attribute not needed anymore in html5.

thanks in advance.

you create snippet (tools > new snippet...)

<snippet>     <content><![cdata[ <style>$1</style> ]]></content>     <!-- optional: set tabtrigger define how trigger snippet -->     <tabtrigger>sty</tabtrigger>     <!-- optional: set scope limit snippet trigger -->     <scope>text.html</scope> </snippet> 

then save style.sublime-snippet in /packages/user folder.

it can called typing sty + tab.

note: <scope> element restricts executed on html files (or files syntax set html)


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -