<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    >

<channel>
    <title>Webmonkey &#187; cool hacks</title>
    <atom:link href="http://www.webmonkey.com/tag/cool-hacks/feed/" rel="self" type="application/rss+xml" />
    <link>http://www.webmonkey.com</link>
    <description>The Web Developer&#039;s Resource</description>
    <lastBuildDate>Fri, 05 Apr 2013 20:20:46 +0000</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <generator>http://wordpress.org/?v=3.4.2</generator>
    
    <item>
        <title>Turn Your Browser into a Notepad With a Single Line of HTML5</title>
        <link>http://www.webmonkey.com/2013/02/turn-your-browser-into-a-notepad-with-a-single-line-of-html5/</link>
        <comments>http://www.webmonkey.com/2013/02/turn-your-browser-into-a-notepad-with-a-single-line-of-html5/#comments</comments>
        <pubDate>Fri, 01 Feb 2013 21:38:16 +0000</pubDate>

                <dc:creator>Scott Gilbertson</dc:creator>

        <guid isPermaLink="false">http://www.webmonkey.com/?p=60776</guid>
        		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[cool hacks]]></category>
            <enclosure url="http://www.webmonkey.com/wp-content/uploads/2013/01/snoopytext-200x100.png" type="image/png" length="48000" />
                    <description><![CDATA[<div class="rss_thumbnail"><img src="http://www.webmonkey.com/wp-content/uploads/2013/01/snoopytext.png" alt="Turn Your Browser into a Notepad With a Single Line of HTML5" /></div>It's not the most useful tool since you can't easily save your work, but this single line of HTML5 code certainly is clever.]]></description>

            <content:encoded><![CDATA[<p><!-- wpautop enabled -->
<p><div id="attachment_60778" class="wp-caption aligncenter" style="width: 590px"><a href="http://www.webmonkey.com/wp-content/uploads/2013/01/snoopytext.png"><img src="http://www.webmonkey.com/wp-content/uploads/2013/01/snoopytext.png" alt="" title="snoopytext" width="580" height="365" class="size-full wp-image-60778" /></a><p class="wp-caption-text">Finally, an editor so simple even Snoopy won&#8217;t get distracted. <em>Image: Webmonkey</em></p></div>If you ever need a quick scratchpad to just write, not save what you write, but just write, you can quickly turn your web browser into an ultra-basic notepad with a single line of HTML. </p>
<p>This <a href="https://coderwall.com/p/lhsrcq">clever trick</a> comes from developer Jose Jesus Perez Aguinaga who says that &#8220;sometimes I just need to type garbage. Just to clear out my mind. Since I live in the browser, I just open a new tab and type&#8221;:</p>
<pre class="brush: js">
data:text/html, &lt;html contenteditable&gt;
</pre>
<p>Thanks to the HTML5 <a href="http://blog.whatwg.org/the-road-to-html-5-contenteditable"><code>contenteditable</code></a> attribute and the modern browser&#8217;s ability to <a href="http://www.nczonline.net/blog/2009/10/27/data-uris-explained/">handle data URIs</a>, your browser is now a notepad &#8212; just click to type. </p>
<p>Of course there&#8217;s no easy way to save your work, so while this is probably the most minimal editor you could hope for, it isn&#8217;t the most practical for actual work. Still a great trick though. Check out the comments on Aguinaga&#8217;s post and on this <a href="https://news.ycombinator.com/item?id=5135194">Hacker News thread</a> for some enhancements to the basic idea (like what I used for the screenshot above)  and a Chrome extension.</p>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
            <wfw:commentRss>http://www.webmonkey.com/2013/02/turn-your-browser-into-a-notepad-with-a-single-line-of-html5/feed/</wfw:commentRss>
        <slash:comments>0</slash:comments>

        
    </item>
    </channel>
</rss>