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

Tag auto-closing #49

Closed
baudoin opened this issue Sep 16, 2014 · 10 comments
Closed

Tag auto-closing #49

baudoin opened this issue Sep 16, 2014 · 10 comments

Comments

@baudoin
Copy link

baudoin commented Sep 16, 2014

Minor detail, but I noticed that in HTML files, tags will close when typing < after the opening tag. This doesn't happen in HBS files though using the Handlebars syntax.

div

@daaain
Copy link
Owner

daaain commented Sep 16, 2014

Right, just tried the same thing with the 3rd party HTML5 package and auto-closing works there too, so it doesn't seem like something hardcoded in the built in package.

There are a couple other issues with tags (#47 and #48), very likely related and rooted in the fact that ST doesn't recognise tags as such when using this package.

Can't promise much at this point as I don't really know why is this happening and how is this functionality related to the simple syntax definition in this package. I'll create a label for tags though, so these issues can be looked at together.

@baudoin
Copy link
Author

baudoin commented Sep 16, 2014

Yeah, obviously a minor issue. Thanks for taking a look @daaain.

@brunowego
Copy link

+1

@iameli
Copy link

iameli commented Mar 26, 2015

Finding the Tag package to be a totally acceptable substitute here. Thus far indistinguishable from the native Sublime functionality except that it works with this package and some other third-party packages.

@daaain
Copy link
Owner

daaain commented Dec 13, 2015

I've added the Tag package workaround to the README (thanks @iameli). Closing the issue as it's very unlikely that I'll ever get around to work on this given that there's a perfect solution, but of course PRs are still welcome.

@daaain daaain closed this as completed Dec 13, 2015
@GriffinSauce
Copy link

Apparently the Tag package has been removed from packagecontrol and even after manual install it still doesn't work. Does anyone know of a different workaround/fix by now?

Sorry for resurrecting this ancient issue ;)

@thekeele
Copy link

@GriffinSauce

Ran across Tag missing from Package Control as well. I was able to get it working manually though.

  • Download Tag | https://github.com/titoBouzout/Tag
  • Unzip and move folder to ~/.config/sublime-text-3/Packages/
  • Make sure the folder is named Tag
  • Open Package Control Settings - User
  • Add "Tag" to the "installed_packages" array
  • Restart Sublime

Enjoy HTML tag closing goodness.

@GriffinSauce
Copy link

Well apparently I screwed up because that works!
Thanks for the step by step @thekeele!

@MKorostoff
Copy link

After following the above steps, I now get this result in every time I boot up sublime:

tag

@daaain
Copy link
Owner

daaain commented Jun 14, 2019

After following the above steps, I now get this result in every time I boot up sublime:

tag

Sorry to hear that @MKorostoff, maybe try to open an issue on that repo?

Or have a look in Package Control, there might be other packages which do the same thing, maybe this: https://packagecontrol.io/packages/Auto%20Close%20HTML%20Tags

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants