snipt

Ctrl+h for KB shortcuts

JavaScript

Snipt Java Embed

<script type="text/javascript" src="https://snipt.net/embed/4bd157c1e02f913d82d5fb7107e70cef/"></script>
https://snipt.net/embed/2c5c8b4218f77272a83fb90373ac1e66/
/raw/2c5c8b4218f77272a83fb90373ac1e66/
2c5c8b4218f77272a83fb90373ac1e66
js
JavaScript
1
2019-07-20T12:39:10
True
False
False
/api/public/snipt/41211/
snipt-java-embed
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="o">&lt;</span><span class="nx">script</span> <span class="nx">type</span><span class="o">=</span><span class="s2">&quot;text/javascript&quot;</span> <span class="nx">src</span><span class="o">=</span><span class="s2">&quot;https://snipt.net/embed/4bd157c1e02f913d82d5fb7107e70cef/&quot;</span><span class="o">&gt;&lt;</span><span class="err">/script&gt;</span> </span></pre></div> </td></tr></table>
java, snipt

PHP

Snipt.net WordPress Shortcode

1
2
3
4
5
// add support for snipt.net
function snipt_shortcode( $atts, $content = null ) {
   return "<script type='text/javascript' src='http://snipt.net/embed/" . $content . "'></script>";
}
add_shortcode( 'snipt', 'snipt_shortcode' );
https://snipt.net/embed/4bd157c1e02f913d82d5fb7107e70cef/
/raw/4bd157c1e02f913d82d5fb7107e70cef/
4bd157c1e02f913d82d5fb7107e70cef
php
PHP
5
2019-06-25T08:05:32
True
False
False
/api/public/snipt/41210/
sniptnet-wordpress-shortcode
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="x">// add support for snipt.net</span> </span><span id="L-2"><a name="L-2"></a><span class="x">function snipt_shortcode( $atts, $content = null ) {</span> </span><span id="L-3"><a name="L-3"></a><span class="x"> return &quot;&lt;script type=&#39;text/javascript&#39; src=&#39;http://snipt.net/embed/&quot; . $content . &quot;&#39;&gt;&lt;/script&gt;&quot;;</span> </span><span id="L-4"><a name="L-4"></a><span class="x">}</span> </span><span id="L-5"><a name="L-5"></a><span class="x">add_shortcode( &#39;snipt&#39;, &#39;snipt_shortcode&#39; );</span> </span></pre></div> </td></tr></table>
shortcode, snipt, wordpress