ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Haml

by phuibonhoa ST2/ST3

HAML Bundle for Textmate

Details

  • 2014.05.07.00.15.23
  • github.​com
  • 4 years ago
  • 2 hours ago
  • 6 years ago

Installs

  • Total 48K
  • Win 11K
  • OS X 25K
  • Linux 11K
Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11
Windows 4 2 1 5 0 3 3 5 2 4 1 3 1 1 8 1 4 3 2 2 4 2 2 2 8 2 5 5 3 2 2 2 4 4 7 2 2 4 2 1 2 4 1 0 3 2
OS X 1 3 1 1 4 6 3 3 3 2 3 2 4 3 7 6 2 5 1 4 7 7 3 2 4 6 7 6 5 1 5 5 7 5 4 10 1 1 5 8 5 4 5 2 3 5
Linux 2 0 2 3 2 2 2 3 0 2 1 2 2 2 5 0 2 1 2 1 4 2 1 2 2 2 3 2 3 1 1 1 1 4 1 4 1 2 1 2 4 1 1 2 1 2

Readme

Source
raw.​githubusercontent.​com

HAML TextMate Bundle

Description

Forked from the Handcrafted HAML TextMate Bundle. Additions include

Improved Language

  • Text inside Ruby, ERB, Javascript, Sass, and CSS filters are now properly recognized so you get all the syntax highlighting, snippets, commands, etc.
  • Added built-in html recognition. Helpful when you include html in your haml.
  • Ruby code inside #{} recognized as embedded ruby
  • Updated language so that < and > are recognized as HAML constants

Added snippets and commands

  • ⌘⌥+C converts selection from HTML to HAML (and tries to convert erb to haml style - still beta-y)
  • ⌃+> inserts #{} and toggles between #{ruby code} and #{ ruby code }
  • Added snippets for attributes (:⇥ and =>)
  • Added full trigger snippets for common html elements (ie table, br, div, h1, h2, etc.)
  • ⌘+/ uses rails comments -# instead of HTML comments
  • ⌘⌥+X escapes HTML special characters

Installation

  1. $ cd ~/Library/Application\ Support/TextMate/Bundles/
  2. $ git clone git://github.com/phuibonhoa/handcrafted-haml-textmate-bundle.git Haml.tmbundle
  3. $ osascript -e 'tell app "TextMate" to reload bundles'

If you'd like to install all my bundles, check out this script written by mkdynamic. It installs all bundles and backups any existing bundles with conflicting names. Thanks Mark!

My Other Textmate Bundles

My bundles work best when use in conjunction with my other bundles:

Credits

Additions by Philippe Huibonhoa and funded by BookRenter.com.

Original bundle can be found here