snipt

Ctrl+h for KB shortcuts

Text only

Indentation Test

1
2
3
4
5
	Single line. Tab character inserted at start of line.

    Multiple lines 1
    Multiple lines 2
    Multiple lines 3 - All lines partially selected, then Tab used to indent all three.
https://snipt.net/embed/a32e1a640b1bbebffc1041a98d4ea559/
https://snipt.net/raw/a32e1a640b1bbebffc1041a98d4ea559/
a32e1a640b1bbebffc1041a98d4ea559
text
Text only
5
2016-09-25T21:46:54
True
False
False
/api/public/snipt/50350/
indentation-test
<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 id="L-1"><a name="L-1"></a> Single line. Tab character inserted at start of line. </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a> Multiple lines 1 </span><span id="L-4"><a name="L-4"></a> Multiple lines 2 </span><span id="L-5"><a name="L-5"></a> Multiple lines 3 - All lines partially selected, then Tab used to indent all three. </span></pre></div> </td></tr></table>
bugs, snipt

Bash

Using snipt-cli to add a temporary snipt

1
2
3
# https://github.com/nicksergeant/snipt-cli

$ echo hay thar | snipt post_and_get_url -t
https://snipt.net/embed/ce97345104357ef21ab64f900ccf9658/
https://snipt.net/raw/ce97345104357ef21ab64f900ccf9658/
ce97345104357ef21ab64f900ccf9658
bash
Bash
3
2016-09-25T08:47:35
True
False
False
/api/public/snipt/43523/
using-snipt-cli-to-add-a-temporary-snipt
<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></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="c"># https://github.com/nicksergeant/snipt-cli</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="nv">$ </span><span class="nb">echo </span>hay thar <span class="p">|</span> snipt post_and_get_url -t </span></pre></div> </td></tr></table>
cli, snipt

JavaScript

Snipt Java Embed

<script type="text/javascript" src="https://snipt.net/embed/4bd157c1e02f913d82d5fb7107e70cef/"></script>
https://snipt.net/embed/2c5c8b4218f77272a83fb90373ac1e66/
https://snipt.net/raw/2c5c8b4218f77272a83fb90373ac1e66/
2c5c8b4218f77272a83fb90373ac1e66
js
JavaScript
1
2016-09-25T08:47:49
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 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/
https://snipt.net/raw/4bd157c1e02f913d82d5fb7107e70cef/
4bd157c1e02f913d82d5fb7107e70cef
php
PHP
5
2016-09-25T11:14:37
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 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

Markdown

Snipt Chrome extension now available in the Chrome Web Store.

Craig Zheng's awesome Snipt.net Chrome extension has been published in the Chrome Web Store. Get it here.

Awesome work, Craig!

https://snipt.net/embed/7f0f0976d64a8c9bc1629599157f895f/
https://snipt.net/raw/7f0f0976d64a8c9bc1629599157f895f/
7f0f0976d64a8c9bc1629599157f895f
markdown
Markdown
4
2016-09-25T00:04:00
True
False
True
May 24, 2012 at 10:34 PM
/api/public/snipt/41107/
snipt-chrome-extension-now-available-in-the-chrome-web-store
<p><a href="http://twitter.com/czheng">Craig Zheng</a>'s awesome Snipt.net Chrome extension has been published in the Chrome Web Store. <a href="https://chrome.google.com/webstore/detail/bkmpbmdfadelliddjcjglploolikpeej">Get it here</a>.</p> <p>Awesome work, Craig!</p>
"May 2012", 2012, snipt
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.