<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Folding and user defined language questions]]></title><description><![CDATA[<p dir="auto">I’m customizing user defined language to work with KSP (Kontakt script) and I’ve got some questions I can’t figure out, maybe someone could help me out.</p>
<p dir="auto">Is there a line limit for folding?<br />
Folding is very useful. I defined the conditions and it’s working on shorter scripts, but it seems to go south completely, when a section to fold is relatively large, like 5000+ lines. It seems to pick folding point randomly all over the place. I wonder if it’s problem with too large section to fold or it may be something else.</p>
<p dir="auto">Is there a way to remember folding state?<br />
Say I have a file open, I fold all. Close Notepad++, re-open and it’s all unfold again. However if I have the same file open in two panes, it will open with folded sections, just as it was when I closed the program. Is there a way to control it?</p>
<p dir="auto">Is it possible to copy/paste or drag’n’drop whole folded section?<br />
It would be very useful to move whole folded sections around, is there option to do it?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/13357/folding-and-user-defined-language-questions</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Nov 2026 05:43:53 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/13357.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 26 Feb 2017 15:19:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Folding and user defined language questions on Sun, 26 Feb 2017 18:17:04 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">A simple test with 10000 lines didn’t show any issues but this doesn’t<br />
mean that a more complex test with different foldings in between wouldn’t.<br />
If you could share the file and udl xml we could check if this is the case.</p>
</blockquote>
<p dir="auto">I wouldn’t want to post the code in question on public forum. But, as I was trying to re-create the problem, I figured, it has something to do with encoding. The original file was marked as UTF-8, performing “convert to ANSI” fixes the problem, moreover when I convert it back to UTF-8 it still works. So, I guess there was something wrong in the file. Thank you for pointing me in the right direction.</p>
<blockquote>
<blockquote>
<p dir="auto">Is there a way to remember folding state?</p>
</blockquote>
<p dir="auto">Normally this is the case if you have remember current session … enabled (Settings-&gt;Preferences-&gt;Backup)</p>
</blockquote>
<p dir="auto">Yes, I have the setting enabled. I’m working with two views open and it seems that the program always unfolds everything on left view, while remembering the state of right view.</p>
<p dir="auto">Also, I wonder, if it’s possible to you a phrase containing a whitespace, as a prefix if keyword list. I have this structure:<br />
*function bla_bla<br />
…<br />
end function</p>
<p dir="auto">call bla_bla*</p>
<p dir="auto">I wonder how to apply the same styler to “call” and a word that comes next, while not affecting words like “recalled”…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/22175</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/22175</guid><dc:creator><![CDATA[Marcin Gruszczyński]]></dc:creator><pubDate>Sun, 26 Feb 2017 18:17:04 GMT</pubDate></item><item><title><![CDATA[Reply to Folding and user defined language questions on Sun, 26 Feb 2017 16:55:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/marcin-gruszczy%C5%84ski" aria-label="Profile: Marcin-Gruszczyński">@<bdi>Marcin-Gruszczyński</bdi></a></p>
<blockquote>
<p dir="auto">Is there a line limit for folding?</p>
</blockquote>
<p dir="auto">A simple test with 10000 lines didn’t show any issues but this doesn’t<br />
mean that a more complex test with different foldings in between wouldn’t.<br />
If you could share the file and udl xml we could check if this is the case.</p>
<blockquote>
<p dir="auto">Is there a way to remember folding state?</p>
</blockquote>
<p dir="auto">Normally this is the case if you have remember current session … enabled (Settings-&gt;Preferences-&gt;Backup)</p>
<blockquote>
<p dir="auto">Is it possible to copy/paste or drag’n’drop whole folded section?</p>
</blockquote>
<p dir="auto">Select the folded section but make sure that your cursor ends on the next line -&gt; ctrl+c / ctrl+v</p>
<blockquote>
<p dir="auto">t would be very useful to move whole folded sections around, is there option to do it?</p>
</blockquote>
<p dir="auto">The same as before ctrl+shift arrow up or down - but it will open the folded section after action.<br />
Maybe using collapse level functions to fold again.</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/22173</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/22173</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Sun, 26 Feb 2017 16:55:16 GMT</pubDate></item></channel></rss>