Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indent for body and head when using html:* #186

Closed
wants to merge 4 commits into from

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