January 11, 2013 at 1:57 pm #41938
Is there a way to put things in the head element when using the
abbreviation? putting things into the body is as easy as html:5>(insert body markup), how do I put stuff into the head, like links to stylesheets and scripts within that same expression?January 11, 2013 at 2:24 pm #120703
Hmm. I tried a few variations but couldn’t come up with one myself.
What you could do is create your own snippet within Sublime’s standard snippets functionality. So you could do your own custom shortcut, like html5x for example.January 11, 2013 at 2:28 pm #120704
I think I’ll going to set it to html:5(head elements)>(body elements), if I can figure out how.January 11, 2013 at 10:19 pm #120723
I edited Emmet.sublime-settings snippets as shown here.
So now I can add a document title, stylesheet, and script within the expression as follows:
While adding this functionality, I discovered that I can use “!” instead of “html:5”, so it also works like this:
Hopefully this will be of use to others.
You must be logged in to reply to this topic.