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
  • 10 months ago
  • 7 minutes ago
  • 3 years ago

Installs

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

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