Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Make your text editor recognize the CocoaPods files

Superbil edited this page · 3 revisions

vim

Add the following to your ftdetect/ruby.vim script:

" CocoaPods
au BufNewFile,BufRead Podfile,*.podspec      set filetype=ruby

Sublime Text 2

  • Click the name of the current content format in the lower right corner (most likely "Plain Text").
  • Select "Open all with current extension as..." in the menu which opens.
  • Pick "Ruby" from the list.

Even though the menu refers to "extensions" this method also works for Podfile files, which have no extension. It will not cause Sublime Text 2 to open all files without extensions in Ruby mode.

Emacs

Add the following to your init.el

 (add-auto-mode 'ruby-mode
           "Podfile\\'" "\\.podspec\\'")
Something went wrong with that request. Please try again.