[quote=“sublimator”]Yeah, another thing is the lack of auto closing with {} I think that’s something that should come by default with Sublime.
It would be quite nice if the highlighting worked some how for xml tags and if one of the ends wasn’t visible then it show up quite visibly on the minimap.[/quote]
I agree it would be very nice to have highlighted matching xml/html tags (ala notepad++)
for the other one sublime flexibility allows you to do it… (I agree it should be there by default tho)
Curly Braces.sublime-snippet
<snippet>
<content><![CDATA[{${0:$SELECTION}}]]></content>
</snippet>
Add this to Default.sublime-keymap if you want it to work global like ] and parenthesis (I did)
If you want it language specific, put it in the right Default.sublime-keymap under X language folder (ex: PHP\Default.sublime-keymap)
<!-- Auto curly braces -->
<binding key="}" command="move characters 1">
<context name="option" value="autoMatchEnabled"/>
<context name="allSelectionsEmpty" value="true"/>
<context name="allFollowingCharacter" value="}"/>
</binding>
<binding key="{" command="insertSnippet 'Packages/Default/Curly Braces.sublime-snippet'">
<context name="option" value="autoMatchEnabled"/>
<context name="allSelectionsEmpty" value="true"/>
<context name="allFollowingText" value="^(\t| |]|$)"/>
</binding>
<binding key="{" command="insertSnippet 'Packages/Default/Curly Braces.sublime-snippet'">
<context name="option" value="autoMatchEnabled"/>
<context name="allSelectionsNonEmpty" value="true"/>
</binding>