<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Code Folding Update in R2008a</title>
	<link>http://blogs.mathworks.com/desktop/2008/04/28/code-folding-update-in-r2008a/</link>
	<description>Ken &#38; Mike work on the MATLAB Desktop team</description>
	<pubDate>Mon, 23 Nov 2009 00:35:03 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Ken</title>
		<link>http://blogs.mathworks.com/desktop/2008/04/28/code-folding-update-in-r2008a/#comment-6280</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Thu, 04 Jun 2009 00:58:29 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2008/04/28/code-folding-update-in-r2008a/#comment-6280</guid>
		<description>Hi Juliette,

Note that you could use cells in order to fold chunks of code you don't want to see. While this isn't the selection based folding your asking for, it is a reasonable workaround. To fold a block of code, you could insert cell markers like this:

%% cell start
% code to fold
%% cell end

-Ken</description>
		<content:encoded><![CDATA[<p>Hi Juliette,</p>
<p>Note that you could use cells in order to fold chunks of code you don&#8217;t want to see. While this isn&#8217;t the selection based folding your asking for, it is a reasonable workaround. To fold a block of code, you could insert cell markers like this:</p>
<p>%% cell start<br />
% code to fold<br />
%% cell end</p>
<p>-Ken</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juliette Salexa</title>
		<link>http://blogs.mathworks.com/desktop/2008/04/28/code-folding-update-in-r2008a/#comment-6279</link>
		<dc:creator>Juliette Salexa</dc:creator>
		<pubDate>Wed, 03 Jun 2009 22:24:59 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2008/04/28/code-folding-update-in-r2008a/#comment-6279</guid>
		<description>We should be able to fold whatever we want.  Not just those listed above.  I should be able to highlight a few lines, and hide them .. sometimes I don't want to see huge blocks of code that are irrelavent to the current situation, and these blocks of code are not appropriate to incorporate into functions.

Whether or not it's considered "dirty" or "sloppy" programming style, I like programming in a certain way, and I'm the only one using my programs, so I should be allowed to do what I want!

In Maple I can hide whatever I want, why not in MATLAB ??</description>
		<content:encoded><![CDATA[<p>We should be able to fold whatever we want.  Not just those listed above.  I should be able to highlight a few lines, and hide them .. sometimes I don&#8217;t want to see huge blocks of code that are irrelavent to the current situation, and these blocks of code are not appropriate to incorporate into functions.</p>
<p>Whether or not it&#8217;s considered &#8220;dirty&#8221; or &#8220;sloppy&#8221; programming style, I like programming in a certain way, and I&#8217;m the only one using my programs, so I should be allowed to do what I want!</p>
<p>In Maple I can hide whatever I want, why not in MATLAB ??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken</title>
		<link>http://blogs.mathworks.com/desktop/2008/04/28/code-folding-update-in-r2008a/#comment-6171</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Wed, 01 Apr 2009 10:46:06 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2008/04/28/code-folding-update-in-r2008a/#comment-6171</guid>
		<description>Hi Kay,

We decided that an &lt;tt&gt;if&lt;/tt&gt; block including all it's &lt;tt&gt;elseif&lt;/tt&gt; and &lt;tt&gt;else&lt;/tt&gt; statements is a single logical entity, and should be folded as such. To get the behavior you're after, I'd encourage you to break out the internals of your &lt;tt&gt;if/else&lt;/tt&gt;blocks into sub-functions or inner functions, each of which are foldable.

-Ken</description>
		<content:encoded><![CDATA[<p>Hi Kay,</p>
<p>We decided that an <tt>if</tt> block including all it&#8217;s <tt>elseif</tt> and <tt>else</tt> statements is a single logical entity, and should be folded as such. To get the behavior you&#8217;re after, I&#8217;d encourage you to break out the internals of your <tt>if/else</tt>blocks into sub-functions or inner functions, each of which are foldable.</p>
<p>-Ken</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kay</title>
		<link>http://blogs.mathworks.com/desktop/2008/04/28/code-folding-update-in-r2008a/#comment-6170</link>
		<dc:creator>Kay</dc:creator>
		<pubDate>Wed, 01 Apr 2009 08:54:30 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2008/04/28/code-folding-update-in-r2008a/#comment-6170</guid>
		<description>why not make single "else"s foldable. You could work on one case, without being botherd with what happens in the other cases, but being able to see the conditions of the other cases/elses.</description>
		<content:encoded><![CDATA[<p>why not make single &#8220;else&#8221;s foldable. You could work on one case, without being botherd with what happens in the other cases, but being able to see the conditions of the other cases/elses.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken</title>
		<link>http://blogs.mathworks.com/desktop/2008/04/28/code-folding-update-in-r2008a/#comment-5672</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Mon, 25 Aug 2008 15:43:32 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2008/04/28/code-folding-update-in-r2008a/#comment-5672</guid>
		<description>Hi Han,

Thats an interesting idea, one also present in Xcode via the &lt;tt&gt;#pragma mark&lt;/tt&gt; token. There's a school of thought that says you shouldn't dirty your code in an effort to accommodate your IDE (check out &lt;a href="http://www.codinghorror.com/blog/archives/001147.html" rel="nofollow"&gt;Jeff Atwood's article on code folding&lt;/a&gt;), though I'm not quite sure where I stand on the issue yet. I will submit an enhancement request though!

-Ken</description>
		<content:encoded><![CDATA[<p>Hi Han,</p>
<p>Thats an interesting idea, one also present in Xcode via the <tt>#pragma mark</tt> token. There&#8217;s a school of thought that says you shouldn&#8217;t dirty your code in an effort to accommodate your IDE (check out <a href="http://www.codinghorror.com/blog/archives/001147.html" rel="nofollow">Jeff Atwood&#8217;s article on code folding</a>), though I&#8217;m not quite sure where I stand on the issue yet. I will submit an enhancement request though!</p>
<p>-Ken</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Han Geerligs</title>
		<link>http://blogs.mathworks.com/desktop/2008/04/28/code-folding-update-in-r2008a/#comment-5671</link>
		<dc:creator>Han Geerligs</dc:creator>
		<pubDate>Mon, 25 Aug 2008 14:54:24 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2008/04/28/code-folding-update-in-r2008a/#comment-5671</guid>
		<description>Hello Ken,

how about introducing the "region" concept as used in the Visual Studio Environment?
This enables the user to introduce his own "folding blocks". 

For more info please look at 
http://msdn.microsoft.com/en-us/library/9a1ybwek(VS.71).aspx</description>
		<content:encoded><![CDATA[<p>Hello Ken,</p>
<p>how about introducing the &#8220;region&#8221; concept as used in the Visual Studio Environment?<br />
This enables the user to introduce his own &#8220;folding blocks&#8221;. </p>
<p>For more info please look at<br />
<a href="http://msdn.microsoft.com/en-us/library/9a1ybwek" rel="nofollow">http://msdn.microsoft.com/en-us/library/9a1ybwek</a>(VS.71).aspx</p>
]]></content:encoded>
	</item>
</channel>
</rss>
