Sublime Forum

Auto comment ending divs with div name?

#1

Hi Everybody,
Just curious if there is a plugin or feature to automatically add a comment to the end of a div with the div name. For example:

I would like to type “#wrap” and hit tab, and then be returned with:

[code]

</div> <!-- end wrap -->[/code]

or something similar to the likes. Is there anything that does this at the moment? Been difficult finding a feature like this.

Regards,

0 Likes

#2

You could write a snippet to do this.

0 Likes

#3

There :smile:

[code]
<![CDATA[

$0
]]> div. text.html [/code]
0 Likes