<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Block Comments</title><link>http://blogs.msdn.com/powershell/archive/2008/01/19/block-comments.aspx</link><description>One of the raging debates that have had within the team is the issue of whether to support block comments.&amp;#160; In PowerShell, we have the comment character #&amp;#160; e.g. # This is a test get-Process -Name LSASS # you can put a comment at the end of a</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>MSDN Blog Postings  &amp;raquo; Block Comments</title><link>http://blogs.msdn.com/powershell/archive/2008/01/19/block-comments.aspx#7165857</link><pubDate>Sun, 20 Jan 2008 03:00:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7165857</guid><dc:creator>MSDN Blog Postings  » Block Comments</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://msdnrss.thecoderblogs.com/2008/01/19/block-comments/"&gt;http://msdnrss.thecoderblogs.com/2008/01/19/block-comments/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Block Comments</title><link>http://blogs.msdn.com/powershell/archive/2008/01/19/block-comments.aspx#7173274</link><pubDate>Sun, 20 Jan 2008 18:41:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7173274</guid><dc:creator>Anonymous</dc:creator><description>&lt;p&gt;Looks like the page link to connect leads to a Page not found or maybe it's not up yet. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;The content that you requested cannot be found or you do not have permission to view it. &amp;quot;&lt;/p&gt;</description></item><item><title>re: Block Comments</title><link>http://blogs.msdn.com/powershell/archive/2008/01/19/block-comments.aspx#7173874</link><pubDate>Sun, 20 Jan 2008 19:52:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7173874</guid><dc:creator>Sean McNeill</dc:creator><description>&lt;p&gt;the link to the connect database does not work.&lt;/p&gt;
&lt;p&gt;I think this debate is already solved by using Here-string, &lt;a rel="nofollow" target="_new" href="http://www.microsoft.com/technet/scriptcenter/resources/pstips/jun07/pstip0629.mspx"&gt;http://www.microsoft.com/technet/scriptcenter/resources/pstips/jun07/pstip0629.mspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I use these on all my scripts at the beginning to document my script but I think here-string could also be used for commenting out large blocks of code&lt;/p&gt;</description></item><item><title>re: Block Comments</title><link>http://blogs.msdn.com/powershell/archive/2008/01/19/block-comments.aspx#7173969</link><pubDate>Sun, 20 Jan 2008 20:03:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7173969</guid><dc:creator>PowerShellTeam</dc:creator><description>&lt;p&gt;Hmmm, the link works for me so that means that either you need to already have to be registered with CONNECT to use it or you have to be me to use it. &amp;nbsp;:-(&lt;/p&gt;
&lt;p&gt;You can navigate to the issue by signing into connect and searching FEEDBACK for: &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;CTP: Missing: Real uncomment a block&lt;/p&gt;
&lt;p&gt;RE: Here Strings. &amp;nbsp;THe issue with HERE strings is that they only work for content that is PROPER PowerShell syntax (i.e. PowerShell script). &amp;nbsp;It does not work for arbitrary text.&lt;/p&gt;
&lt;p&gt;Jeffrey Snover [MSFT]&lt;/p&gt;
&lt;p&gt;Windows Management Partner Architect&lt;/p&gt;
&lt;p&gt;Visit the Windows PowerShell Team blog at: &amp;nbsp; &amp;nbsp;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/PowerShell"&gt;http://blogs.msdn.com/PowerShell&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Visit the Windows PowerShell ScriptCenter at: &amp;nbsp;&lt;a rel="nofollow" target="_new" href="http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx"&gt;http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Block Comments</title><link>http://blogs.msdn.com/powershell/archive/2008/01/19/block-comments.aspx#7174045</link><pubDate>Sun, 20 Jan 2008 20:11:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7174045</guid><dc:creator>Shay Levi</dc:creator><description>&lt;p&gt;FYI, I voted on it yesterday without a problem.&lt;/p&gt;
&lt;p&gt;-----&lt;/p&gt;
&lt;p&gt;Shay Levi&lt;/p&gt;
&lt;p&gt;$cript Fanatic&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://scriptolog.blogspot.com"&gt;http://scriptolog.blogspot.com&lt;/a&gt;&lt;/p&gt;</description></item><item><title>re: Block Comments</title><link>http://blogs.msdn.com/powershell/archive/2008/01/19/block-comments.aspx#7174918</link><pubDate>Sun, 20 Jan 2008 21:46:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7174918</guid><dc:creator>Sean Kearney</dc:creator><description>&lt;p&gt;Well I'll admit to being (other than writing silly songs) a VERY new Powershell &amp;quot;newb&amp;quot;.&lt;/p&gt;
&lt;p&gt;As far as comments go here is my take.&lt;/p&gt;
&lt;p&gt;If you FULLY understand the syntax, the &amp;quot;Block comment /* */ like in C makes it a LOT more readable.&lt;/p&gt;
&lt;p&gt;If you are very new a simple # like used in Batch Files, Basic etc etc etc make's it easier to go through and understand what ISN'T code.&lt;/p&gt;
&lt;p&gt;That's all. &amp;nbsp;I'll leave it to the experts on a good old fashioned &amp;quot;Rumble&amp;quot;... :)&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Sean&lt;/p&gt;
&lt;p&gt;&amp;quot;Highway to PowersHell&amp;quot;&lt;/p&gt;
&lt;p&gt;Sometime soon to be an Mp3. &amp;nbsp;Guard your ears.&lt;/p&gt;</description></item><item><title>re: Block Comments</title><link>http://blogs.msdn.com/powershell/archive/2008/01/19/block-comments.aspx#7174946</link><pubDate>Sun, 20 Jan 2008 21:50:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7174946</guid><dc:creator>Sean Kearney</dc:creator><description>&lt;p&gt;Now for an &amp;quot;unfunny&amp;quot; comment / question.&lt;/p&gt;
&lt;p&gt;What is a decent book to pickup to get you into the &amp;quot;Basics&amp;quot; of Powershell but is also a good overall deeper manual if needed?&lt;/p&gt;
&lt;p&gt;Basically Powershell for Dummies :O&lt;/p&gt;
&lt;p&gt;Sean&lt;/p&gt;</description></item><item><title>re: Block Comments</title><link>http://blogs.msdn.com/powershell/archive/2008/01/19/block-comments.aspx#7179780</link><pubDate>Mon, 21 Jan 2008 08:03:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7179780</guid><dc:creator>Steve Seguis</dc:creator><description>&lt;p&gt;Block comments are the best. Please oh please include them in PS 2.0. It will help promote the concept of actually commenting your scripts (what a novel idea) since it's not as tedeious for those of us who still use notepad :)&lt;/p&gt;
&lt;p&gt;For Sean: I'm working on Windows PowerShell 2.0 for Dummies for Wiley Press at the moment if that counts ;)&lt;/p&gt;
&lt;p&gt;Steve Seguis&lt;/p&gt;
&lt;p&gt;[Former MVP Admin Frameworks ]&lt;/p&gt;</description></item><item><title>re: Block Comments</title><link>http://blogs.msdn.com/powershell/archive/2008/01/19/block-comments.aspx#7184455</link><pubDate>Mon, 21 Jan 2008 17:19:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7184455</guid><dc:creator>Trevor Sullivan</dc:creator><description>&lt;p&gt;Please support block quotes! One of my peeves about writing &amp;amp; debugging VBscripts is the inability to mass-comment lines of code.&lt;/p&gt;
&lt;p&gt;I'll insert a comment/vote on Microsoft Connect as well.&lt;/p&gt;</description></item><item><title>re: Block Comments</title><link>http://blogs.msdn.com/powershell/archive/2008/01/19/block-comments.aspx#7184800</link><pubDate>Mon, 21 Jan 2008 17:52:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7184800</guid><dc:creator>Orrin</dc:creator><description>&lt;p&gt;I've been using this for block comments in Powershell:&lt;/p&gt;
&lt;p&gt;@'&lt;/p&gt;
&lt;p&gt;COMMENT GOES HERE&lt;/p&gt;
&lt;p&gt;'@ &amp;gt; $null&lt;/p&gt;</description></item><item><title>KISS</title><link>http://blogs.msdn.com/powershell/archive/2008/01/19/block-comments.aspx#7185889</link><pubDate>Mon, 21 Jan 2008 19:59:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7185889</guid><dc:creator>Sridhar Ratnakumar</dc:creator><description>&lt;p&gt;Go with multiline # comments. /* .. */ comments mixed with # one-line comments will look ugly.&lt;/p&gt;
&lt;p&gt;In fact, C programmers sometimes comment like the following for good reasons:&lt;/p&gt;
&lt;p&gt;/*&lt;/p&gt;
&lt;p&gt; * Now&lt;/p&gt;
&lt;p&gt; * is&lt;/p&gt;
&lt;p&gt; * the&lt;/p&gt;
&lt;p&gt; * time&lt;/p&gt;
&lt;p&gt; * to&lt;/p&gt;
&lt;p&gt; * use&lt;/p&gt;
&lt;p&gt; * PowerShell &lt;/p&gt;
&lt;p&gt; */&lt;/p&gt;
&lt;p&gt;That certainly looks better. For example, &lt;a rel="nofollow" target="_new" href="http://git.kernel.org/?p=git/git.git;a=blob;f=alloc.c;hb=HEAD"&gt;http://git.kernel.org/?p=git/git.git;a=blob;f=alloc.c;hb=HEAD&lt;/a&gt;&lt;/p&gt;</description></item><item><title>re: Block Comments</title><link>http://blogs.msdn.com/powershell/archive/2008/01/19/block-comments.aspx#7190888</link><pubDate>Tue, 22 Jan 2008 03:36:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7190888</guid><dc:creator>Sean Kearney</dc:creator><description>&lt;p&gt;You know what? &amp;nbsp;You're right. &amp;nbsp;It takes me very little time to get used to normal code and looking at it twice, the block comments are a lot more readable.&lt;/p&gt;
&lt;p&gt;:)&lt;/p&gt;</description></item><item><title>re: Block Comments</title><link>http://blogs.msdn.com/powershell/archive/2008/01/19/block-comments.aspx#7203900</link><pubDate>Wed, 23 Jan 2008 04:41:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7203900</guid><dc:creator>Mike Schinkel</dc:creator><description>&lt;p&gt;Jeffrey: &amp;quot;If you need help knowing what to think, let me know and I'll tell you. &amp;nbsp;:-)&amp;quot;&lt;/p&gt;
&lt;p&gt;Sounds like you could have a promising career in talk radio... '-)&lt;/p&gt;
&lt;p&gt;Anyway, YES, provide multi-line comments. And MAKE THEM NESTABLE.&lt;/p&gt;</description></item><item><title>re: Block Comments</title><link>http://blogs.msdn.com/powershell/archive/2008/01/19/block-comments.aspx#7210825</link><pubDate>Wed, 23 Jan 2008 20:42:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7210825</guid><dc:creator>JaredPar</dc:creator><description>&lt;p&gt;I kind of like having a # on every line. &amp;nbsp;Yeah it looks hacky but it feels right for a scripting language. &amp;nbsp;&lt;/p&gt;</description></item><item><title>re: Block Comments</title><link>http://blogs.msdn.com/powershell/archive/2008/01/19/block-comments.aspx#7212473</link><pubDate>Thu, 24 Jan 2008 00:21:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7212473</guid><dc:creator>jw</dc:creator><description>&lt;p&gt;I've tried searching from Connect as the first comment suggested but I cannot find this. &amp;nbsp;I am a member of Connect (had to deal with DST last year).&lt;/p&gt;</description></item><item><title>re: Block Comments</title><link>http://blogs.msdn.com/powershell/archive/2008/01/19/block-comments.aspx#7223466</link><pubDate>Thu, 24 Jan 2008 18:51:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7223466</guid><dc:creator>Sean</dc:creator><description>&lt;p&gt;I would like to see support for block comments as well as single line comments. If you support both you end up making everyone happy, even those that like Sridhar who use both at the same time. I think it is pointless to use /* */ for a single line but the guy who introduced me to programming would use that for a single comment line in his C/C++ code. Why just have one way? &lt;/p&gt;</description></item><item><title>re: Block Comments</title><link>http://blogs.msdn.com/powershell/archive/2008/01/19/block-comments.aspx#7327430</link><pubDate>Wed, 30 Jan 2008 17:45:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7327430</guid><dc:creator>LeoTohill</dc:creator><description>&lt;p&gt;Yes, there should be an language feature for block comments. &amp;nbsp;I like #@...@# in the style of here strings. &amp;nbsp;Like here strings, these tokens should be recognized only when alone on a line, thus avoiding accidental comments. &lt;/p&gt;</description></item><item><title>re: Block Comments</title><link>http://blogs.msdn.com/powershell/archive/2008/01/19/block-comments.aspx#7901671</link><pubDate>Tue, 26 Feb 2008 13:17:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7901671</guid><dc:creator>Alex Hokhlov</dc:creator><description>&lt;p&gt;Block comments come in handy when I want to play with code in the MIDDLE of a line. Consider this: /* 0.5 * */ func($var1 /* 42 + args[0] */, bar($x) /* TODO: try $y */). Granted, one could break this piece into several lines and use # end comments, but that would look somewhat awkward and spacy. Beyond all good-style reasoning, I still believe the &amp;quot;one statement/one line&amp;quot; format is more natural, compact and easy to read.&lt;/p&gt;</description></item><item><title>re: Block Comments</title><link>http://blogs.msdn.com/powershell/archive/2008/01/19/block-comments.aspx#8466180</link><pubDate>Wed, 07 May 2008 20:09:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8466180</guid><dc:creator>dtginc</dc:creator><description>&lt;p&gt;Couldn't follow the link. &amp;nbsp;Here's my vote, though - PLEASE add block comments. &amp;nbsp;The /*...*/ is a good format. &amp;nbsp;Better yet, to keep with the # symbol, you could always use /#...#/.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>re: Block Comments</title><link>http://blogs.msdn.com/powershell/archive/2008/01/19/block-comments.aspx#9152472</link><pubDate>Fri, 28 Nov 2008 20:35:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9152472</guid><dc:creator>karlsnooks</dc:creator><description>&lt;p&gt;Was this ever resolved?&lt;/p&gt;
&lt;p&gt;I definitely vote for block comments and not an indirect solution such as @'...'@ &amp;gt; $null or @&amp;quot; ...&amp;quot;@ &amp;nbsp;approach.&lt;/p&gt;
&lt;p&gt;karl&lt;/p&gt;</description></item><item><title>re: Block Comments</title><link>http://blogs.msdn.com/powershell/archive/2008/01/19/block-comments.aspx#9153225</link><pubDate>Fri, 28 Nov 2008 23:32:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9153225</guid><dc:creator>PowerShellTeam</dc:creator><description>&lt;p&gt;Yes - V2 will have block comments.&lt;/p&gt;
&lt;p&gt;&amp;lt;#&lt;/p&gt;
&lt;p&gt;anything you want&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;#&amp;gt;&lt;/p&gt;
&lt;p&gt;jps&lt;/p&gt;
</description></item><item><title>re: Block Comments</title><link>http://blogs.msdn.com/powershell/archive/2008/01/19/block-comments.aspx#9154141</link><pubDate>Sat, 29 Nov 2008 04:12:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9154141</guid><dc:creator>karl snooks</dc:creator><description>&lt;p&gt;Many thanks for speedy reply and am glad to see that we'll have block comments soon. &amp;nbsp;will they be available on version 3?&lt;/p&gt;</description></item><item><title>re: Block Comments</title><link>http://blogs.msdn.com/powershell/archive/2008/01/19/block-comments.aspx#9156062</link><pubDate>Sat, 29 Nov 2008 19:14:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9156062</guid><dc:creator>PowerShellTeam</dc:creator><description>&lt;p&gt;They will be available in CTP3 which we expect will be available sometime in Dec.&lt;/p&gt;
&lt;p&gt;jps&lt;/p&gt;
</description></item></channel></rss>