Custom edits to the default TextMate bundles.
This repo is solely for my own personal use, so I can sync-up my TextMate Bundles. It's designed to modify the default bundles. Consequently, it's not interoperable, so you can't drag n' drop snippets or language tweaks. Sorry bro :(
But if you'd like to give it a shot, you'll need to put this repo in your Bundles directory. Either download and copy it there, or via the command line:
cd ~/Library/Application Support/TextMate/Bundles
git clone https://github.com/desandro/textmate-bundles.git
- Modified CSS Language to include HTML5 elements and CSS3 properties and values
- Snippets
-border-radius
: expands to vendor prefixes-box-shadow
: expands to vendor prefixeshsl
hsla
-transform
: expands to vendor prefixes-transition
: expands to vendor prefixes-vendors
: expands with just the vendor prefixes
- Tempates
- HTML5
- Removed all other templates except for HTML5
- Snippets
script
&scriptsrc
: Removedcharset
andtype
attributesstyle
: Removedtype="text/css"
link
: Removedtype="text/css"
andtitle
html5
: simple HTML5 document
- Language
- Enabled lowercase
doctype
as a valid doctype
- Enabled lowercase
- Snippets
for
: simplified for loop (modified)fora
: for loop for iterating over arrayaddev
: addEventListener()remev
: removeEventListener()create
: createElement()createf
: createDocumentFragment()clog
: console.log()//--
: section comment styling:// ------------- Section ------------ //
//-
: title comment styling:// ---- Title ---- //
/**
: JSDoc comment
- Commands
- Reformat Documenent / Selection Command uses two space tabs
- Copy as Bookmarklet to Clipboard Command changed to Ctrl+Shift+L, so as not to interfere with baller Reformat Document command
- Shift + Ctrl + Opt + U : Uglify with UglifyJS
- Shift + Ctrl + Opt + B : Beautify with UglifyJS
- Language
.json
filetype addedarguments
: highlighted as a classstopPropagation
: highlighted as functionpreventDefault
: highlighted as functionjQuery
: highlighted as a class
- Tweaks to formatting