Home Download Buy Blog Forum Support

How to generate HTML tags

How to generate HTML tags

Postby FlyingEagle on Fri Sep 20, 2013 3:39 pm

Hello,

Sorry if this is weird question but I'm new to sublime and I was wondering if there's any way to automatically generate all the basic HTML tags like <html></html>,<head></head> etc... so I don't have to write it myself all the time :).

Thank you
FlyingEagle
 
Posts: 2
Joined: Fri Sep 20, 2013 3:33 pm

Re: How to generate HTML tags

Postby quodlibet on Fri Sep 20, 2013 4:04 pm

You need to be editing an HTML file. (You can see what Sublime thinks the syntax of the current file is on the bottom right corner). An HTML file is either one with an appropriate extension (.html, .htm, etc.) or one where you've changed the syntax to HTML via the menu or the command palette.

Then, just type `head` (or any other tag) and press `tab`. If it doesn't, you may have turned it off. Inspect your settings under the menu `Preferences > Settings - User`.

There are other packages (Tag, Emmet, etc.) which can extend this functionality

Hope this helps,
Alex
quodlibet
 
Posts: 554
Joined: Sat Jun 18, 2011 5:53 pm

Re: How to generate HTML tags

Postby FlyingEagle on Fri Sep 20, 2013 7:14 pm

This works just perfectly! Many thanks for your helpful post :).
FlyingEagle
 
Posts: 2
Joined: Fri Sep 20, 2013 3:33 pm


Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 20 guests