Home Download Buy Blog Forum Support

Expand on multi lines?

Expand on multi lines?

Postby lajlev on Thu Feb 09, 2012 9:55 am

In HTML.sublime-completions I wanna tweak div( { "trigger": "div", "contents": "<div>$1</div>" } ) completion to do this:
Code: Select all
<div>
$1
</div>


instead of this
Code: Select all
<div>$1</div>


How is that possible?
lajlev
 
Posts: 7
Joined: Mon Jul 05, 2010 7:28 am

Re: Expand on multi lines?

Postby iamntz on Thu Feb 09, 2012 10:17 am

Probably like so:

Code: Select all
{ "trigger": "div", "contents": "<div>\n$1\n</div>" } )
iamntz
 
Posts: 908
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania


Return to General Discussion

Who is online

Users browsing this forum: Majestic-12 [Bot] and 32 guests