<?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>comment &#8211; Alessandro Crugnola &#8211; sephiroth.it</title>
	<atom:link href="https://blog.sephiroth.it/tag/comment/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.sephiroth.it</link>
	<description>programmer by pure chance</description>
	<lastBuildDate>Sun, 13 Jun 2010 09:33:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://blog.sephiroth.it/wp-content/uploads/2019/03/cropped-sepy-big-32x32.png</url>
	<title>comment &#8211; Alessandro Crugnola &#8211; sephiroth.it</title>
	<link>https://blog.sephiroth.it</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Comment, Comment Everywhere</title>
		<link>https://blog.sephiroth.it/2005/01/14/comment-comment-everywhere/</link>
					<comments>https://blog.sephiroth.it/2005/01/14/comment-comment-everywhere/#respond</comments>
		
		<dc:creator><![CDATA[Alessandro Crugnola]]></dc:creator>
		<pubDate>Fri, 14 Jan 2005 16:43:48 +0000</pubDate>
				<category><![CDATA[SEPY]]></category>
		<category><![CDATA[comment]]></category>
		<category><![CDATA[shortcut]]></category>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=53</guid>

					<description><![CDATA[Commenting lines, commenting multilines, uncommenting lines ect.. If you&#8217;re a SE&#124;PY user you probalby know that actually there are 2 different menu items for commenting/uncommenting code (and also 2 different key shortcuts). I received different requests for change this thing. Some people ask me to make a unique shortcut/menu for commenting and uncommenting code, and &#8230; <a href="https://blog.sephiroth.it/2005/01/14/comment-comment-everywhere/" class="more-link">Continue reading <span class="screen-reader-text">Comment, Comment Everywhere</span></a>]]></description>
										<content:encoded><![CDATA[<p>Commenting lines, commenting multilines, uncommenting lines ect..<br />
If you&#8217;re a <a href="http://www.sephiroth.it/python/sepy.php">SE|PY</a> user you probalby know that actually there are 2 different menu items for commenting/uncommenting code (and also 2 different key shortcuts).<br />
I received different requests for change this thing. Some people ask me to make a unique shortcut/menu for commenting and uncommenting code, and also make 2 different way of add comment (one for &#8216;//&#8217; comment and the other for &#8216;/*&#8217; comment).<br />
In this way, if you hit &#8220;comment&#8221; on a line:<br />
_root.<span style="color: #0000cc;">gotoAndStop</span>(1);<br />
it will become <span style="color: #ff33cc;"><br />
// _root.gotoAndStop(1);</span><br />
and, if you hit again on &#8220;comment&#8221; with the selection in the same line it will turn back to _root.<span style="color: #0000cc;">gotoAndStop</span>(1);<br />
No problem in fact with single line selection.. but if you hit &#8220;comment&#8221; on a multiline selection like:<br />
_root.<span style="color: #0000cc;">gotoAndStop</span>(1); <span style="color: #ff33cc;">//play();</span><br />
another_line();<br />
what should be the result?  <span style="font-weight: bold;"><br />
1st solution:</span> Detect line by line, if line is commented then uncomment it, otherwise comment line <span style="color: #ff33cc;">//_root.gotoAndStop(1);</span> <span style="color: #0000cc;"><br />
play</span>();<br />
<span style="color: #ff33cc;">//another_line();</span><br />
or   <span style="font-weight: bold;">2nd solution</span> Detect first line of the selection, if this line is commented, then try to uncomment all the lines in selection, otherwise comment every line of selection <span style="color: #ff33cc;"><br />
//_root.gotoAndStop(1);<br />
//play();<br />
//another_line();</span><br />
there is also a discussion in the developement mailing list, I&#8217;m not completely sure which is the best solution, even i prefer the second one..  I would like to know your opinion</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.sephiroth.it/2005/01/14/comment-comment-everywhere/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
