forked from rstacruz/sparkup
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Broke off chunks of README.md into docs/
- Loading branch information
Showing
3 changed files
with
128 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,123 @@ | ||
More to come here. | ||
<h2>Usage and installation</h2> | ||
|
||
<ul> | ||
<li><p><strong>VIM, TextMate</strong>: See the <code>vim/</code> and <code>textmate/</code> folders</li> | ||
<li><p><strong>Others/command line use</strong>: See <code>generic/</code></li> | ||
|
||
</ul> | ||
|
||
|
||
<h2>Examples</h2> | ||
|
||
<p><strong><code>div</code></strong> expands to:</p> | ||
|
||
<pre><code><div></div> | ||
</code></pre> | ||
|
||
<p><strong><code>div#header</code></strong> expands to:</p> | ||
|
||
<pre><code><div id="header"></div> | ||
</code></pre> | ||
|
||
<p><strong><code>div.align-left#header</code></strong> expands to:</p> | ||
|
||
<pre><code><div id="header" class="align-left"></div> | ||
</code></pre> | ||
|
||
<p><strong><code>div#header + div#footer</code></strong> expands to:</p> | ||
|
||
<pre><code><div id="header"></div> | ||
<div id="footer"></div> | ||
</code></pre> | ||
|
||
<p><strong><code>#menu > ul</code></strong> expands to:</p> | ||
|
||
<pre><code><div id="menu"> | ||
|
||
<ul></ul> | ||
</div> | ||
</code></pre> | ||
|
||
<p><strong><code>#menu > h3 + ul</code></strong> expands to:</p> | ||
|
||
<pre><code><div id="menu"> | ||
|
||
<h3></h3> | ||
<ul></ul> | ||
</div> | ||
</code></pre> | ||
|
||
<p><strong><code>#header > h1{Welcome to our site}</code></strong> expands to:</p> | ||
|
||
<pre><code><div id="header"> | ||
<h1>Welcome to our site</h1> | ||
</div> | ||
</code></pre> | ||
|
||
<p><strong><code>a[href=index.html]{Home}</code></strong> expands to:</p> | ||
|
||
<pre><code><a href="index.html">Home</a> | ||
</code></pre> | ||
|
||
<p><strong><code>ul > li*3</code></strong> expands to:</p> | ||
|
||
<pre><code><ul> | ||
<li></li> | ||
|
||
<li></li> | ||
<li></li> | ||
</ul> | ||
</code></pre> | ||
|
||
<p><strong><code>ul > li.item-$*3</code></strong> expands to:</p> | ||
|
||
<pre><code><ul> | ||
<li class="item-1"></li> | ||
<li class="item-2"></li> | ||
<li class="item-3"></li> | ||
</ul> | ||
|
||
</code></pre> | ||
|
||
<p><strong><code>ul > li.item-$*3 > strong</code></strong> expands to:</p> | ||
|
||
<pre><code><ul> | ||
<li class="item-1"><strong></strong></li> | ||
|
||
<li class="item-2"><strong></strong></li> | ||
<li class="item-3"><strong></strong></li> | ||
</ul> | ||
</code></pre> | ||
|
||
<p><strong><code>table > tr*2 > td.name + td*3</code></strong> expands to:</p> | ||
|
||
<pre><code><table> | ||
<tr> | ||
<td class="name"></td> | ||
<td></td> | ||
<td></td> | ||
|
||
<td></td> | ||
</tr> | ||
<tr> | ||
<td class="name"></td> | ||
<td></td> | ||
|
||
<td></td> | ||
<td></td> | ||
</tr> | ||
</table> | ||
</code></pre> | ||
|
||
<p><strong><code>#header > ul > li < p{Footer}</code></strong> expands to:</p> | ||
|
||
<pre><code><!-- The < symbol goes back up the parent; i.e., the opposite of >. --> | ||
<div id="header"> | ||
<ul> | ||
<li></li> | ||
</ul> | ||
|
||
<p>Footer</p> | ||
</div> | ||
</code> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
Instructions: | ||
|
||
- double-click on the tmbundle. | ||
Simply double-click on the Sparkup.tmbundle package in Finder. This will install Sparkup | ||
automatically. In TextMate, open an HTML file (or set the document type to HTML) type in | ||
something (e.g., #header > h1), then press Ctrl + E. Pressing Tab will cycle through empty | ||
elements. |