Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 51 lines (31 sloc) 1.127 kB
dc030ab @mislav maximum awesome
authored
1 Execute JavaScript in TextMate
2 ==============================
3
4 This is a TextMate bundle for the excellent [Lyndon][].
5
6 1. Get [MacRuby][],
7 2. Get Lyndon. Do so with [rip][]:
8
9 rip install git://github.com/defunkt/lyndon.git
10
11 Or rubygems:
12
13 [sudo] macgem install lyndon
14
15 3. Install Lyndon.tmbundle:
16
17 git clone git://github.com/mislav/Lyndon.tmbundle.git \
18 "~/Library/Application Support/TextMate/Bundles"
19
20 4. Maximum awesome.
21
22 Bundle commands
23 ---------------
24
25 Shortcuts are the same as equivalents in Ruby documents:
26
27 * ⌘R -- run JavaScript document
28 * ⌃⇧E -- run line / selection as JavaScript
29
30 *(Make sure you have your textmate document set to "JavaScript".)*
31
32 Try it on
33 ---------
34
35 Here's a sample document:
36
37 function camelize(string){
38 return string.replace(/-(.)/g, function(_, c){ return c.toUpperCase() })
39 }
40
41 camelize('webkit-border-radius')
42
43 Hitting ⌘R should produce:
44
45 "WebkitBorderRadius"
46
47 You're done.
48
49 [lyndon]: http://github.com/defunkt/lyndon
50 [macruby]: http://www.macruby.org/downloads.html
51 [rip]: http://hellorip.com/about.html
Something went wrong with that request. Please try again.