Skip to content

Conversation

@IonicaBizau
Copy link

I often use html:5 to start a html file. But I never liked that the <head> and <body> do not have indent. Each time I was selecting them and adding the indent.

Finally I decided to edit the plugin and I added this functionality. So, when html:5_ will be expanded it will be transformed in:

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        _
    </body>
</html>

(_ being the cursor position)

Thank you for this great plugin! 😃

@mattn
Copy link
Owner

mattn commented Jan 30, 2014

Thank for your pull-request. But Sublime Text 3 doesn't expand to you expected.

@IonicaBizau
Copy link
Author

Do we care about what SublimeText does? Maybe it's a bug? 😄

Personally I like to indent head and body tags.

@IonicaBizau
Copy link
Author

cc @mattn

@mattn
Copy link
Owner

mattn commented May 2, 2014

I don't want that this is not a bug.
Try this at http://docs.emmet.io/

@mattn
Copy link
Owner

mattn commented May 2, 2014

If you don't want this behavior, please set your configuration like below.

let g:user_emmet_settings = webapi#json#decode(join(readfile(expand('~/.snippets_custom.json')), "\n"))

@IonicaBizau
Copy link
Author

Ok, I will close this then.

@IonicaBizau IonicaBizau closed this May 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants