<?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: Code Folding Update in R2008a</title>
	<atom:link href="http://blogs.mathworks.com/community/2008/04/28/code-folding-update-in-r2008a/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/community/2008/04/28/code-folding-update-in-r2008a/</link>
	<description>News from the intersection of MATLAB, Community, and the web.</description>
	<lastBuildDate>Wed, 22 May 2013 17:07:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: David</title>
		<link>http://blogs.mathworks.com/community/2008/04/28/code-folding-update-in-r2008a/#comment-44528</link>
		<dc:creator>David</dc:creator>
		<pubDate>Wed, 27 Mar 2013 22:02:14 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2008/04/28/code-folding-update-in-r2008a/#comment-44528</guid>
		<description><![CDATA[First off, I&#039;m loving the code folding!! I do agree/use that if you need some random block of code folded you can use cells &#039;%%&#039;. However I also use these in my code to differentiate sections and don&#039;t want extra temporary &#039;%%&#039; running all over that need to be deleted later.

2 suggestions:
a. add a distinguisher to be able to fold any section of code. ie:
start_fold
  code to be folded
end_fold

Have then act like tic toc. not really effecting the code. In this way after I&#039;m done I can search for &#039;start_fold&#039; and replace with &#039; &#039; and same with &#039;end_fold&#039;. As a temporary fix I use:
if 1
  code to be folded
end

which can cover comments, code, loops etc.


b. I&#039;d also like to be able to fold block comments:
%{
comments to be folded
%}

rather then having to put them in a separate cell.]]></description>
		<content:encoded><![CDATA[<p>First off, I&#8217;m loving the code folding!! I do agree/use that if you need some random block of code folded you can use cells &#8216;%%&#8217;. However I also use these in my code to differentiate sections and don&#8217;t want extra temporary &#8216;%%&#8217; running all over that need to be deleted later.</p>
<p>2 suggestions:<br />
a. add a distinguisher to be able to fold any section of code. ie:<br />
start_fold<br />
  code to be folded<br />
end_fold</p>
<p>Have then act like tic toc. not really effecting the code. In this way after I&#8217;m done I can search for &#8216;start_fold&#8217; and replace with &#8216; &#8216; and same with &#8216;end_fold&#8217;. As a temporary fix I use:<br />
if 1<br />
  code to be folded<br />
end</p>
<p>which can cover comments, code, loops etc.</p>
<p>b. I&#8217;d also like to be able to fold block comments:<br />
%{<br />
comments to be folded<br />
%}</p>
<p>rather then having to put them in a separate cell.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://blogs.mathworks.com/community/2008/04/28/code-folding-update-in-r2008a/#comment-6976</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Wed, 21 Apr 2010 12:01:39 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2008/04/28/code-folding-update-in-r2008a/#comment-6976</guid>
		<description><![CDATA[@josy,

 I am not sure I understand your question. You can enable code folding through the preferences: File -&gt; Preferences -&gt; Editor -&gt; Code Folding]]></description>
		<content:encoded><![CDATA[<p>@josy,</p>
<p> I am not sure I understand your question. You can enable code folding through the preferences: File -> Preferences -> Editor -> Code Folding</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ponmani</title>
		<link>http://blogs.mathworks.com/community/2008/04/28/code-folding-update-in-r2008a/#comment-6975</link>
		<dc:creator>ponmani</dc:creator>
		<pubDate>Wed, 21 Apr 2010 07:53:57 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2008/04/28/code-folding-update-in-r2008a/#comment-6975</guid>
		<description><![CDATA[Sir, How can the code folding option in the  m-file editor can be enabled to apply fold and expand operations. Kindly reply me in this regard.
With thanks and regards,
josy,]]></description>
		<content:encoded><![CDATA[<p>Sir, How can the code folding option in the  m-file editor can be enabled to apply fold and expand operations. Kindly reply me in this regard.<br />
With thanks and regards,<br />
josy,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://blogs.mathworks.com/community/2008/04/28/code-folding-update-in-r2008a/#comment-6900</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Mon, 01 Mar 2010 12:52:26 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2008/04/28/code-folding-update-in-r2008a/#comment-6900</guid>
		<description><![CDATA[@Pablo,

 Are you interested in nested cells in this case for evaluation/publishing purposes or just for code folding? We have requests for both functionalities, so I was just looking to see where to add your use case.]]></description>
		<content:encoded><![CDATA[<p>@Pablo,</p>
<p> Are you interested in nested cells in this case for evaluation/publishing purposes or just for code folding? We have requests for both functionalities, so I was just looking to see where to add your use case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pablo</title>
		<link>http://blogs.mathworks.com/community/2008/04/28/code-folding-update-in-r2008a/#comment-6899</link>
		<dc:creator>Pablo</dc:creator>
		<pubDate>Mon, 01 Mar 2010 11:47:38 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2008/04/28/code-folding-update-in-r2008a/#comment-6899</guid>
		<description><![CDATA[Hello to all,

I am really optimistic with this folding thing. I like it and I think it could be really usefull for structuring the code.
There is one thing I missed, I would like to be able to make cells within cells, and give the hole program an structure within a few lines that could be unfolded at certain places of my convenience.]]></description>
		<content:encoded><![CDATA[<p>Hello to all,</p>
<p>I am really optimistic with this folding thing. I like it and I think it could be really usefull for structuring the code.<br />
There is one thing I missed, I would like to be able to make cells within cells, and give the hole program an structure within a few lines that could be unfolded at certain places of my convenience.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken</title>
		<link>http://blogs.mathworks.com/community/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 isPermaLink="false">http://blogs.mathworks.com/desktop/2008/04/28/code-folding-update-in-r2008a/#comment-6280</guid>
		<description><![CDATA[Hi Juliette,

Note that you could use cells in order to fold chunks of code you don&#039;t want to see. While this isn&#039;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/community/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 isPermaLink="false">http://blogs.mathworks.com/desktop/2008/04/28/code-folding-update-in-r2008a/#comment-6279</guid>
		<description><![CDATA[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&#039;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&#039;s considered &quot;dirty&quot; or &quot;sloppy&quot; programming style, I like programming in a certain way, and I&#039;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/community/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 isPermaLink="false">http://blogs.mathworks.com/desktop/2008/04/28/code-folding-update-in-r2008a/#comment-6171</guid>
		<description><![CDATA[Hi Kay,

We decided that an &lt;tt&gt;if&lt;/tt&gt; block including all it&#039;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&#039;re after, I&#039;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/community/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 isPermaLink="false">http://blogs.mathworks.com/desktop/2008/04/28/code-folding-update-in-r2008a/#comment-6170</guid>
		<description><![CDATA[why not make single &quot;else&quot;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/community/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 isPermaLink="false">http://blogs.mathworks.com/desktop/2008/04/28/code-folding-update-in-r2008a/#comment-5672</guid>
		<description><![CDATA[Hi Han,

Thats an interesting idea, one also present in Xcode via the &lt;tt&gt;#pragma mark&lt;/tt&gt; token. There&#039;s a school of thought that says you shouldn&#039;t dirty your code in an effort to accommodate your IDE (check out &lt;a href=&quot;http://www.codinghorror.com/blog/archives/001147.html&quot; rel=&quot;nofollow&quot;&gt;Jeff Atwood&#039;s article on code folding&lt;/a&gt;), though I&#039;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>
</channel>
</rss>
