Created
March 9, 2014 15:15
-
-
Save gorhgorh/9449252 to your computer and use it in GitHub Desktop.
snippet to generate markup tio insert a live exemple in mdn documentation
This file contains hidden or 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
<snippet> | |
<content><![CDATA[ | |
<h2 name="$1">$1</h2> | |
<h3>HTML</h3> | |
<pre class="brush: html"> | |
${2:Sample HTML Content}</pre> | |
<h3>CSS</h3> | |
<pre class="brush: css"> | |
${3:Sample CSS Content}</pre> | |
<h3>JavaScript</h3> | |
<pre class="brush: js"> | |
${4:Sample JavaScript Content}</pre> | |
<p>{{ EmbedLiveSample('$1') }}</p> | |
$0 | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>mdn</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<scope>text.html</scope> | |
</snippet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment