Sublime Forum

CloseTagOnSlash

#1

This is a command for Sublime Text 2 that is meant to be bound to the slash
("/") key in order to auto close open HTML tags.

github.com/kihlstrom/CloseTagOnSlash

0 Likes

#2

Very handy, thanks!

0 Likes

#3

Just commited a new version of the plugin (on github). It now utilizes the close_tag command that was added in build 2111 of Sublime Text 2 (that was released earlier today). Enjoy! :smile:

0 Likes

#4

Code moved to a new location: github.com/SublimeText/CloseTagOnSlash

0 Likes

#5

In an effort to keep packages about HTML/XML tags in a single place, We decided to mix together “Close Tag on Slash”, “Tag indent” and a new one “Tag Remove”

To remember:

Close Tag on Slash - Auto Close tags when inserting “/” character.
Tag indent - Apply pretty indent to selections.
Tag Remove - Allows to remove all tags, or some selected tags from documents or selections.

With this version there is some updates to “Close Tag on Slash” to be able to work with multiples selections.

If you already have installed “Close Tag on Slash” or “Tag Indent” please remove these packages and install the new one.

Location is: github.com/SublimeText/Tag

Any problem let us know
Regards,

0 Likes

#6

Bump

0 Likes

#7

I’m using the new (unified) tag plugin.
When auto-formatting, it introduces

  • a new line before and after a link &

  • a space before and a new line after the tag

Is there a way to change this behaviour through settings or at least by editing the core?

0 Likes