<?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: ManagedMyC: Code folding for functions</title>
	<atom:link href="http://blog.280z28.org/archives/2008/10/22/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.280z28.org/archives/2008/10/22/</link>
	<description>Because it&#039;s easier than editing the HTML by hand.</description>
	<lastBuildDate>Wed, 05 Oct 2011 19:39:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Julian</title>
		<link>http://blog.280z28.org/archives/2008/10/22/comment-page-1/#comment-27342</link>
		<dc:creator>Julian</dc:creator>
		<pubDate>Fri, 22 Jul 2011 20:26:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.280z28.org/archives/2008/10/22/#comment-27342</guid>
		<description>&lt;p&gt;Just want to leave a comment in case somebody uses this example and need to use the End-Of-Line (&quot;&#092;r&#092;n&quot;) to mark the end of a block.&lt;/p&gt;

&lt;p&gt;the function ToTextSpan needs to be modified as follows:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;    public static TextSpan ToTextSpan(IToken token)
    {
        if (token == null)
            return new TextSpan();

        string tokentext = token.Text ?? string.Empty;
        if (token.Text.Equals(&quot;\n&quot;) &#124;&#124; token.Text.Equals(&quot;\r\n&quot;))
            tokentext = string.Empty;

        return new TextSpan()
        {
            iStartLine = token.Line - 1,
            iStartIndex = token.CharPositionInLine,
            iEndLine = token.Line - 1,
            iEndIndex = token.CharPositionInLine + tokentext.Length
        };
    }
&lt;/code&gt;&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<p>Just want to leave a comment in case somebody uses this example and need to use the End-Of-Line (&#8220;&#092;r&#092;n&#8221;) to mark the end of a block.</p>

<p>the function ToTextSpan needs to be modified as follows:</p>

<pre><code>    public static TextSpan ToTextSpan(IToken token)
    {
        if (token == null)
            return new TextSpan();

        string tokentext = token.Text ?? string.Empty;
        if (token.Text.Equals("\n") || token.Text.Equals("\r\n"))
            tokentext = string.Empty;

        return new TextSpan()
        {
            iStartLine = token.Line - 1,
            iStartIndex = token.CharPositionInLine,
            iEndLine = token.Line - 1,
            iEndIndex = token.CharPositionInLine + tokentext.Length
        };
    }
</code></pre>]]></content:encoded>
	</item>
</channel>
</rss>

