documentation upate

This commit is contained in:
Kenneth Reitz
2010-05-04 21:48:00 -04:00
parent 31729da93d
commit e34d84f554
2 changed files with 14 additions and 47 deletions
+14 -29
View File
@@ -1,33 +1,18 @@
<style type="text/css" media="screen">
html{width: 85%; min-width: 600px;margin: 0 auto;}
h1,h2,h3,h4,h5,h6{border:0!important;}
h1{font-size:170%!important;border-top:4px solid #aaa!important;padding-top:.5em!important;margin-top:1.5em!important;}
h1:first-child{margin-top:0!important;padding-top:.25em!important;border-top:none!important;}
h2{font-size:150%!important;margin-top:1.5em!important;border-top:4px solid #e0e0e0!important;padding-top:.5em!important;}
h3{margin-top:1em!important;}
p{margin:1em 0!important;line-height:1.5em!important;}
ul{margin:1em 0 1em 2em!important;}
ol{margin:1em 0 1em 2em!important;}
ul ul, ul ol, ol ol, ol ul{margin-top:0!important;margin-bottom:0!important;}
blockquote{margin:1em 0!important;border-left:5px solid #ddd!important;padding-left:.6em!important;color:#555!important;}
dt{font-weight:bold!important;margin-left:1em!important;}
dd{margin-left:2em!important;margin-bottom:1em!important;}
table{margin:1em 0!important;}
table th{border-bottom:1px solid #bbb!important;padding:.2em 1em!important;}
table td{border-bottom:1px solid #ddd!important;padding:.2em 1em!important;}
pre{margin:1em 0!important;font-size:90%!important;background-color:#f8f8ff!important;border:1px solid #dedede!important;padding:.5em!important;line-height:1.5em!important;color:#444!important;overflow:auto!important;}
pre code{padding:0!important;font-size:100%!important;background-color:#f8f8ff!important;border:none!important;}
code{font-size:90%!important;background-color:#f8f8ff!important;color:#444!important;padding:0 .2em!important;border:1px solid #dedede!important;}
pre.console{margin:1em 0!important;font-size:90%!important;background-color:black!important;padding:.5em!important;line-height:1.5em!important;color:white!important;}
pre.console code{padding:0!important;font-size:100%!important;background-color:black!important;border:none!important;color:white!important;}
pre.console span{color:#888!important;}
pre.console span.command{color:yellow!important;}
</style>
kHTML Bundle for TextMate
=========================
# Installation
TextMate's built-in HTML Bundle is a bit lacking. This helps. Alot.
cd ~/Library/"Application Support"/TextMate/Bundles/
Features
--------
* Snippet support for significantly more tags (eg. img, span, p, h1)
* Snippets for common JS library inclues (eg. jQuery, Mootools, TopUp)
* Update Bundle via git
If that directory wasn't found, you'll need to create it, then:
Installation
------------
git clone git://github.com/kennethreitz/kHTML.tmbundle.git "kHTML.tmbundle"
mkdir -p ~/Library/Application\ Support/TextMate/Bundles
cd !$
git clone git://github.com/kennethreitz/kHTML.tmbundle.git
osascript -e 'tell app "TextMate" to reload bundles'
-18
View File
@@ -1,18 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>&lt;a href="${1:$TM_SELECTED_TEXT}" title="${2:$TM_SELECTED_TEXT}"&gt;${3:$TM_SELECTED_TEXT}&lt;/a&gt;$0</string>
<key>keyEquivalent</key>
<string>^@a</string>
<key>name</key>
<string>a (link)</string>
<key>scope</key>
<string>text.html</string>
<key>tabTrigger</key>
<string>a</string>
<key>uuid</key>
<string>21093360-77A2-4C7D-829B-64DCEA24B5AD</string>
</dict>
</plist>