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
  • 3 years ago
  • 1 hour ago
  • 6 years ago

Installs

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

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