<?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[User-Defined Language | Problem with Code Folding]]></title><description><![CDATA[<p dir="auto">Hi there!</p>
<p dir="auto">I set up a user defined language for maxscript and so far i have everything working except code folding.</p>
<p dir="auto">Code example:</p>
<pre><code>		--- loop each state
		for thestate in allstates do
		(
			--- restores a scenestate by name
			sceneStateMgr.RestoreAllParts thestate
			
			-- what values are saved in it?
			statebitarray = sceneStateMgr.GetParts thestate
			
			--- set layer status to hidden or not
			myLayer = LayerManager.getLayerFromName layername
			myLayer.on = theswitch
			
			if updatenested then
			(
				-- handle children
				layerRT = mylayer.layerAsRefTarg
				for a=1 to layerRT.getNumChildren() do
				(
					childlayer = layerRT.getChild a
					childlayer.on = mylayer.on
				)
			)
			
			-- save scene state with the same name
			sceneStateMgr.Capture thestate statebitarray
		)
</code></pre>
<p dir="auto">What i would like to achieve is code folding the nested brackets. If i set up the UDL for folding with<br />
Open: (<br />
Middle:<br />
Close: )<br />
the folding looks like this:<br />
<a href="http://imgur.com/a/thzyZ" rel="nofollow ugc">image</a></p>
<p dir="auto">Is there a way to fix this?<br />
Folding by intendation would also be fine, although when researching it, it kinda seemed to me like that’s a python exclusive thing.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/13259/user-defined-language-problem-with-code-folding</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 01:24:33 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/13259.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 09 Feb 2017 10:40:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to User-Defined Language | Problem with Code Folding on Tue, 14 Mar 2017 15:11:12 GMT]]></title><description><![CDATA[<p dir="auto">Hi Lukas,</p>
<p dir="auto">This thread about Maxscript may also interest you: <a href="https://notepad-plus-plus.org/community/topic/13443/need-help-to-make-maxscript-functions-recognized-by-function-list" rel="nofollow ugc">https://notepad-plus-plus.org/community/topic/13443/need-help-to-make-maxscript-functions-recognized-by-function-list</a></p>
<p dir="auto">Werwack</p>
]]></description><link>https://community.notepad-plus-plus.org/post/22691</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/22691</guid><dc:creator><![CDATA[WerwacK]]></dc:creator><pubDate>Tue, 14 Mar 2017 15:11:12 GMT</pubDate></item><item><title><![CDATA[Reply to User-Defined Language | Problem with Code Folding on Mon, 13 Mar 2017 16:32:55 GMT]]></title><description><![CDATA[<p dir="auto">Hi Lukas,</p>
<p dir="auto">I am sharing a User Defined Language setup for Maxscript on my webpage if you want.<br />
I found it on the web a long time ago and use it regularly. It is not perfect though, so I am currently asking for help in order to see the functions in the Functions Lister panel (another thread in this forum).</p>
<p dir="auto"><a href="http://werwackfx.com/index.php/graphictools/maxscript-main/maxscript-articles/73-maxscriptinnotepadpp" rel="nofollow ugc">http://werwackfx.com/index.php/graphictools/maxscript-main/maxscript-articles/73-maxscriptinnotepadpp</a></p>
<p dir="auto">I didn’t found how to set up the folding blocks eithers unfortunately.</p>
<p dir="auto">Hope this helps,</p>
<p dir="auto">Werwack</p>
]]></description><link>https://community.notepad-plus-plus.org/post/22651</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/22651</guid><dc:creator><![CDATA[WerwacK]]></dc:creator><pubDate>Mon, 13 Mar 2017 16:32:55 GMT</pubDate></item><item><title><![CDATA[Reply to User-Defined Language | Problem with Code Folding on Mon, 13 Feb 2017 09:16:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7674">@Lukas-Kiefer</a></p>
<p dir="auto">Quick update as I’m on the run, maybe using a delimiter<br />
Open fn<br />
Close =<br />
and allowing nesting?<br />
Assuming that function name function definition and parameters<br />
are part of keywords, numbers etc…</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/21818</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/21818</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Mon, 13 Feb 2017 09:16:23 GMT</pubDate></item><item><title><![CDATA[Reply to User-Defined Language | Problem with Code Folding on Mon, 13 Feb 2017 08:35:51 GMT]]></title><description><![CDATA[<p dir="auto">Hi, no that’s not what i mean.<br />
I’d like to have the “mode:” and “updatenested:” colored. Basically every word ending on “:”.</p>
<p dir="auto">Cheers<br />
Lukas</p>
]]></description><link>https://community.notepad-plus-plus.org/post/21813</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/21813</guid><dc:creator><![CDATA[Lukas Kiefer]]></dc:creator><pubDate>Mon, 13 Feb 2017 08:35:51 GMT</pubDate></item><item><title><![CDATA[Reply to User-Defined Language | Problem with Code Folding on Fri, 10 Feb 2017 16:20:27 GMT]]></title><description><![CDATA[<p dir="auto">I understand that, from your example, you want to have the 1 and the word true colored.<br />
No, I don’t think it is possible using the current udl version.</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/21753</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/21753</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Fri, 10 Feb 2017 16:20:27 GMT</pubDate></item><item><title><![CDATA[Reply to User-Defined Language | Problem with Code Folding on Fri, 10 Feb 2017 07:36:22 GMT]]></title><description><![CDATA[<p dir="auto">Okay thank you. I tried changing the eol but it didn’t help.</p>
<p dir="auto">I figured it out by myself. Problem causing my issue was i set the Close on line comments to ((EOL)).<br />
Somehow that caused code folding on some line comments.</p>
<p dir="auto">Now that i have that working i have one more question.</p>
<p dir="auto">Functions are defined like this:<br />
<code>fn updatelayertoscenestates layername mode:1 updatenested:true = (return true)</code></p>
<p dir="auto">Is it possible to style the optional parameters (The ones followed by “:”)?</p>
<p dir="auto">Cheers and thank you for helping me</p>
]]></description><link>https://community.notepad-plus-plus.org/post/21742</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/21742</guid><dc:creator><![CDATA[Lukas Kiefer]]></dc:creator><pubDate>Fri, 10 Feb 2017 07:36:22 GMT</pubDate></item><item><title><![CDATA[Reply to User-Defined Language | Problem with Code Folding on Thu, 09 Feb 2017 22:58:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7674">@Lukas-Kiefer</a></p>
<p dir="auto">Your example works for me.<br />
By any chance do you use non-windows eol?<br />
Recently one reported an issue when using unix eols.</p>
<p dir="auto">Yes, you are right, UDL cannot use indention for folding.</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/21734</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/21734</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Thu, 09 Feb 2017 22:58:15 GMT</pubDate></item></channel></rss>