<?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>Docken Online &#187; javascript</title>
	<atom:link href="http://www.dockenonline.com/blog/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dockenonline.com/blog</link>
	<description></description>
	<lastBuildDate>Sun, 05 Sep 2010 09:59:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Neat Little Comment Trick</title>
		<link>http://www.dockenonline.com/blog/2010/02/neat-little-comment-trick/</link>
		<comments>http://www.dockenonline.com/blog/2010/02/neat-little-comment-trick/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 04:29:49 +0000</pubDate>
		<dc:creator>Corey Docken</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[trick]]></category>

		<guid isPermaLink="false">http://www.dockenonline.com/blog/?p=84</guid>
		<description><![CDATA[<p>Hopefully this post will save someone else a bit of time just like it did for me&#8230; I stumbled across a trick for commenting out various blocks of code (typically used for debugging). By using a combination of the multi-line and single line comments, you can quickly comment/uncomment code.</p>
<p>/*
alert('error');
//*/</p>
<p>By setting up your comments like this, you [...]]]></description>
			<content:encoded><![CDATA[<p>Hopefully this post will save someone else a bit of time just like it did for me&#8230; I stumbled across a trick for commenting out various blocks of code (typically used for debugging). By using a combination of the multi-line and single line comments, you can quickly comment/uncomment code.</p>
<blockquote><p><code>/*<br />
alert('error');<br />
//*/</code></p></blockquote>
<p>By setting up your comments like this, you can then add another forward slash to the first line to quickly uncomment the alert.</p>
<blockquote><p><code>//*<br />
alert('error');<br />
//*/</code></p></blockquote>
<p>In SQL, just replace the // on line three with &#8212; and the first two characters on line one should be &#8211;.  Basically, it should look like this.</p>
<blockquote><p><code>--/*<br />
select * from table<br />
--*/</code></p></blockquote>
<h4>Update (11 May 2010)</h4>
<p>I figured out a way to use this trick for CSS even though there is no such thing as a single line comment in CSS. You just need to place an asterisk at the end of the top part of the comment, like below:</p>
<blockquote><p><code>/* Comment trick for CSS *<br />
body { background: #000; }<br />
/**/</code></p></blockquote>
<p>And then to &#8220;activate&#8221; the commented code out, just finish closing the upper comment:</p>
<blockquote><p><code>/* Comment trick for CSS */<br />
body { background: #000; }<br />
/**/</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.dockenonline.com/blog/2010/02/neat-little-comment-trick/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
