<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Every keystroke is a prisoner &#8211; a neat commenting trick</title>
	<atom:link href="http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 17 May 2012 07:43:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: hdragomir</title>
		<link>http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick/comment-page-1#comment-273446</link>
		<dc:creator>hdragomir</dc:creator>
		<pubDate>Fri, 15 May 2009 14:44:45 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick#comment-273446</guid>
		<description>Very, very neat trick.

I use Komodo, and the Ctrl + 3 to comment and Ctrl + Shift + 3 to uncomment make my life easier.</description>
		<content:encoded><![CDATA[<p>Very, very neat trick.</p>
<p>I use Komodo, and the Ctrl + 3 to comment and Ctrl + Shift + 3 to uncomment make my life easier.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eostrom</title>
		<link>http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick/comment-page-1#comment-262089</link>
		<dc:creator>eostrom</dc:creator>
		<pubDate>Thu, 13 Mar 2008 16:30:42 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick#comment-262089</guid>
		<description>This looks like one of those things that is clever but not wise.  It&#039;s convenient while you&#039;re working intensely with that block of code--but when you&#039;re done, you (maybe) have code that looks disabled but isn&#039;t.  Not so easy for other developers (or you, later) to follow.

Not a problem if you remember to remove the confusing comments when you&#039;re done, but, well, I never remember stuff like that.</description>
		<content:encoded><![CDATA[<p>This looks like one of those things that is clever but not wise.  It&#8217;s convenient while you&#8217;re working intensely with that block of code&#8211;but when you&#8217;re done, you (maybe) have code that looks disabled but isn&#8217;t.  Not so easy for other developers (or you, later) to follow.</p>
<p>Not a problem if you remember to remove the confusing comments when you&#8217;re done, but, well, I never remember stuff like that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sekostar</title>
		<link>http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick/comment-page-1#comment-262015</link>
		<dc:creator>sekostar</dc:creator>
		<pubDate>Tue, 11 Mar 2008 13:20:01 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick#comment-262015</guid>
		<description>there is another neat trick. 
disable first
&lt;code&gt;tabTitle.innerHTML = /* [a href=&quot;+tab.link+&quot; rel=&quot;nofollow&quot;&gt;&#039;+tab.title+&#039;&#039;; // */ &lt;b&gt;tab.title&lt;/b&gt;;&lt;/code&gt;

disable second
&lt;code&gt;tabTitle.innerHTML = &lt;b&gt; [a href=&quot;+tab.link+&quot;  rel=&quot;nofollow&quot;&gt;&#039;+tab.title+&#039;&#039;;&lt;/b&gt; // */ tab.title;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>there is another neat trick.<br />
disable first<br />
<code>tabTitle.innerHTML = /* [a href="+tab.link+" rel="nofollow">'+tab.title+''; // */ <b>tab.title</b>;</code></p>
<p>disable second<br />
<code>tabTitle.innerHTML = <b> [a href="+tab.link+"  rel="nofollow">'+tab.title+'';</b> // */ tab.title;</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SeanO</title>
		<link>http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick/comment-page-1#comment-261736</link>
		<dc:creator>SeanO</dc:creator>
		<pubDate>Sat, 01 Mar 2008 15:49:31 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick#comment-261736</guid>
		<description>In PHP, it&#039;s even easier to use the single # character to comment/uncomment blocks of code:
/*
..code
*/

to:

#/*
..code
#*/</description>
		<content:encoded><![CDATA[<p>In PHP, it&#8217;s even easier to use the single # character to comment/uncomment blocks of code:<br />
/*<br />
..code<br />
*/</p>
<p>to:</p>
<p>#/*<br />
..code<br />
#*/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DarrenDR</title>
		<link>http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick/comment-page-1#comment-261710</link>
		<dc:creator>DarrenDR</dc:creator>
		<pubDate>Fri, 29 Feb 2008 15:17:31 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick#comment-261710</guid>
		<description>This was blogged last year at  http://51elliot.blogspot.com/2007/09/comment-switches.html</description>
		<content:encoded><![CDATA[<p>This was blogged last year at  <a href="http://51elliot.blogspot.com/2007/09/comment-switches.html" rel="nofollow">http://51elliot.blogspot.com/2007/09/comment-switches.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Holton</title>
		<link>http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick/comment-page-1#comment-261694</link>
		<dc:creator>Mark Holton</dc:creator>
		<pubDate>Thu, 28 Feb 2008 17:48:03 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick#comment-261694</guid>
		<description>...i dig it...</description>
		<content:encoded><![CDATA[<p>&#8230;i dig it&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: starkraving</title>
		<link>http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick/comment-page-1#comment-261692</link>
		<dc:creator>starkraving</dc:creator>
		<pubDate>Thu, 28 Feb 2008 17:35:26 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick#comment-261692</guid>
		<description>Yay! Homesite FTW! I have Aptana/Eclipse with CFEclipse and I never use it. ColdFusion Studio is still doing it for me even today. I hate this website btw. I come in in the morning at 9 ready to work and I say to myself &#039;I&#039;ll just check the RSS feed of Ajaxian to see if there&#039;s anything interesting&#039;. 45 minutes later I have to physically peel myself away to get started on my work. Absolutely invaluable. Thanks to all who spend the time to keep it current!</description>
		<content:encoded><![CDATA[<p>Yay! Homesite FTW! I have Aptana/Eclipse with CFEclipse and I never use it. ColdFusion Studio is still doing it for me even today. I hate this website btw. I come in in the morning at 9 ready to work and I say to myself &#8216;I&#8217;ll just check the RSS feed of Ajaxian to see if there&#8217;s anything interesting&#8217;. 45 minutes later I have to physically peel myself away to get started on my work. Absolutely invaluable. Thanks to all who spend the time to keep it current!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Kant</title>
		<link>http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick/comment-page-1#comment-261691</link>
		<dc:creator>Andy Kant</dc:creator>
		<pubDate>Thu, 28 Feb 2008 16:42:51 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick#comment-261691</guid>
		<description>I don&#039;t understand why you would use this technique since any decent text editor or IDE has this ability with a keyboard shortcut, but this is pretty cool if you&#039;re still using Notepad for your development. But then again - if you were using Notepad - you wouldn&#039;t get the syntax highlighting which would make this technique pretty unreadable.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t understand why you would use this technique since any decent text editor or IDE has this ability with a keyboard shortcut, but this is pretty cool if you&#8217;re still using Notepad for your development. But then again &#8211; if you were using Notepad &#8211; you wouldn&#8217;t get the syntax highlighting which would make this technique pretty unreadable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sciamop</title>
		<link>http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick/comment-page-1#comment-261690</link>
		<dc:creator>sciamop</dc:creator>
		<pubDate>Thu, 28 Feb 2008 15:55:22 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick#comment-261690</guid>
		<description>The extensible key commands (that generated wrapper tags/text around selection) of Homesite was a killer feature -- this is one of the main reasons I&#039;ve continued using it 5 years after its final release.

I&#039;ve started using Aptana (Rails + Javascript) and really miss the functionality -- I&#039;ve tried to duplicate it with eclipseMonkey but it&#039;s hit or miss.

Another fun tip, is to use undo (ctrl+z) as a mechanism for &#039;jumping back&#039; to previous code block (hit redo/ctrl+y once you are there).</description>
		<content:encoded><![CDATA[<p>The extensible key commands (that generated wrapper tags/text around selection) of Homesite was a killer feature &#8212; this is one of the main reasons I&#8217;ve continued using it 5 years after its final release.</p>
<p>I&#8217;ve started using Aptana (Rails + Javascript) and really miss the functionality &#8212; I&#8217;ve tried to duplicate it with eclipseMonkey but it&#8217;s hit or miss.</p>
<p>Another fun tip, is to use undo (ctrl+z) as a mechanism for &#8216;jumping back&#8217; to previous code block (hit redo/ctrl+y once you are there).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: evank</title>
		<link>http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick/comment-page-1#comment-261689</link>
		<dc:creator>evank</dc:creator>
		<pubDate>Thu, 28 Feb 2008 15:30:58 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick#comment-261689</guid>
		<description>@Mathieu, perl has a distinct advantage; the Smart::Comments module on CPAN.  Its not exactly the same, but I find it an invaluable tool during the testing/debugging process</description>
		<content:encoded><![CDATA[<p>@Mathieu, perl has a distinct advantage; the Smart::Comments module on CPAN.  Its not exactly the same, but I find it an invaluable tool during the testing/debugging process</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rommeech</title>
		<link>http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick/comment-page-1#comment-261688</link>
		<dc:creator>Rommeech</dc:creator>
		<pubDate>Thu, 28 Feb 2008 12:48:18 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick#comment-261688</guid>
		<description>Good idea! Unfortunately doesn&#039;t work with Perl...</description>
		<content:encoded><![CDATA[<p>Good idea! Unfortunately doesn&#8217;t work with Perl&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mathieu \'p01\' Henri</title>
		<link>http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick/comment-page-1#comment-261687</link>
		<dc:creator>Mathieu \'p01\' Henri</dc:creator>
		<pubDate>Thu, 28 Feb 2008 12:39:29 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick#comment-261687</guid>
		<description>Let&#039;s try that one more time and see if Ajaxian borks the comment again, shall we ?

&lt;blockquote&gt;&lt;code&gt;
/* // toggles the comment blocks
NAY
/*/
YAY
/**/
&lt;/code&gt;&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>Let&#8217;s try that one more time and see if Ajaxian borks the comment again, shall we ?</p>
<blockquote><p><code><br />
/* // toggles the comment blocks<br />
NAY<br />
/*/<br />
YAY<br />
/**/<br />
</code></p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mathieu \'p01\' Henri</title>
		<link>http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick/comment-page-1#comment-261686</link>
		<dc:creator>Mathieu \'p01\' Henri</dc:creator>
		<pubDate>Thu, 28 Feb 2008 12:37:41 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick#comment-261686</guid>
		<description>In JS, I  often use the following 2 comment blocks toggle:
&lt;blockquote&gt;/*  // &lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>In JS, I  often use the following 2 comment blocks toggle:</p>
<blockquote><p>/*  // </p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Heilmann</title>
		<link>http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick/comment-page-1#comment-261683</link>
		<dc:creator>Chris Heilmann</dc:creator>
		<pubDate>Thu, 28 Feb 2008 10:15:26 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick#comment-261683</guid>
		<description>@fraggy yes, he updated the post and I was just about to edit this one. Oh well, I still will for those who are not comment subscribed.</description>
		<content:encoded><![CDATA[<p>@fraggy yes, he updated the post and I was just about to edit this one. Oh well, I still will for those who are not comment subscribed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fraggy</title>
		<link>http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick/comment-page-1#comment-261682</link>
		<dc:creator>fraggy</dc:creator>
		<pubDate>Thu, 28 Feb 2008 10:11:13 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick#comment-261682</guid>
		<description>&lt;strong&gt;Update:&lt;/strong&gt; Works in CSS, too.

Comment:
&lt;code&gt;.test {
    border:1px solid red;
    /*/
    background-color: blue;
    /**/
    margin: 1em;
}&lt;/code&gt;

Uncomment:
&lt;code&gt;.test {
    border: 1px solid red;
    /**/
    background-color: blue;
    /**/
    margin: 1em;
}&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p><strong>Update:</strong> Works in CSS, too.</p>
<p>Comment:<br />
<code>.test {<br />
    border:1px solid red;<br />
    /*/<br />
    background-color: blue;<br />
    /**/<br />
    margin: 1em;<br />
}</code></p>
<p>Uncomment:<br />
<code>.test {<br />
    border: 1px solid red;<br />
    /**/<br />
    background-color: blue;<br />
    /**/<br />
    margin: 1em;<br />
}</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick/comment-page-1#comment-261681</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Thu, 28 Feb 2008 09:58:13 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/every-keystroke-is-a-prisoner-a-neat-commenting-trick#comment-261681</guid>
		<description>Nice trick. Doesn&#039;t work with TSQL though, but then if you&#039;re using MS IDEs you have the Ctrl+K,Ctrl+C and Ctrl+K,Ctrl+U key chords to comment and uncomment selected text respectively.</description>
		<content:encoded><![CDATA[<p>Nice trick. Doesn&#8217;t work with TSQL though, but then if you&#8217;re using MS IDEs you have the Ctrl+K,Ctrl+C and Ctrl+K,Ctrl+U key chords to comment and uncomment selected text respectively.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

