Home Download Buy Blog Forum Support

Dev Build 2158

Re: Dev Build 2158

Postby C0D312 on Fri Jan 06, 2012 3:11 am

(btw, anyone know a better way to insert <%= %> ERB tags?)


try this:
Code: Select all
  {
       "args": {
         "contents": "= $0 %>"
       },
       "command": "insert_snippet",
       "context": [
         {
           "key": "selector",
           "match_all": true,
           "operand": "source.ruby",
           "operator": "equal"
         },
         { "key": "preceding_text", "operator": "regex_match", "operand": ".*<%", "match_all": true }
       ],
       "keys": [
         "="
       ]
   },
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: Dev Build 2158

Postby tiger2wander on Fri Jan 06, 2012 4:59 am

Anyone face with bug like mention in this topic: viewtopic.php?f=2&t=4442 ?
--
Best regard!
Uoc Nguyen
tiger2wander
 
Posts: 8
Joined: Mon Apr 18, 2011 10:27 am

Re: Dev Build 2158

Postby Ken2 on Tue Jan 10, 2012 6:53 am

C0D312: I'm trying to figure out how to do ERB <%= %> in sublime text and what you showed looks great. If I could only figure out where to put it. I tried it in zencoding/default(Windows).sublime-keymap and got nothing out of it. Can you suggest where it is supposed to go :-P
Ken2
 
Posts: 1
Joined: Tue Jan 10, 2012 6:49 am

Previous

Return to General Discussion

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 11 guests