Skip to content

Instantly share code, notes, and snippets.

@gorhgorh
Created March 9, 2014 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gorhgorh/9449252 to your computer and use it in GitHub Desktop.
Save gorhgorh/9449252 to your computer and use it in GitHub Desktop.
snippet to generate markup tio insert a live exemple in mdn documentation
<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