Yii Framework Forum: Snippets for Sublime text 2 editor - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Snippets for Sublime text 2 editor Rate Topic: -----

#1 User is offline   yiimann 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 102
  • Joined: 19-December 09

Posted 05 February 2012 - 05:28 PM

Here are snippets for the Sublime text 2 editor :

https://github.com/d...me-yii-snippets

It is installable via Package Control http://wbond.net/sub...package_control
3

#2 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 05 February 2012 - 05:29 PM

Nice - it means it works in Emacs too, via the Yasnippets extension! :)
Or is Sublime using a different format than the Textmate 'standard' ?
"Less noise - more signal"
0

#3 User is offline   yiimann 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 102
  • Joined: 19-December 09

Posted 05 February 2012 - 05:36 PM

Sublime text 2 is in some way compatible with textmate like snippets.
For textmate you can found them here: http://code.google.c...extmate-bundle/ (i'm not the author)
1

#4 User is offline   unknownFreq 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 03-July 12

Posted 29 August 2012 - 03:20 AM

Any chance/way to get these snippets to work with Vim + SnipMate?
0

#5 User is offline   Sampa 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 173
  • Joined: 18-December 11
  • Location:Stockholm,Sweden

Posted 14 September 2012 - 07:13 AM

Holy jesus, I really dont know what this means, but I recently started to use sublime text2 and love it, and I will try to figure out how to install this and test it.

Is it like code completion?
0

#6 User is offline   saada 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 26-September 12

Posted 15 October 2012 - 01:47 AM

Thanks! :lol:
These are awesome!
0

#7 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 15 October 2012 - 05:50 PM

In 'Sublime -> Preferences -> Package Settings -> CTags -> User settings I put this:
{
	"ctags_command"   :  "ctags -R -f .tags --exclude=yiilite.php",
	"extra_tag_paths" :  "/var/www/yii/framework/"
}

If am not sure if there are a more elegant way - or if it's wrong - but it seems to work fine. :)
"Less noise - more signal"
1

#8 User is offline   raydeal 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 11
  • Joined: 21-January 12
  • Location:Southern Poland

Posted 21 November 2012 - 06:39 PM

View PostunknownFreq, on 29 August 2012 - 03:20 AM, said:

Any chance/way to get these snippets to work with Vim + SnipMate?


Yes, it is :) see http://www.yiiframew...r-vim-snipmate/
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users