<?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[using "FOR" in language definition causes unexpected results]]></title><description><![CDATA[<p dir="auto">We use a language definition file for our scripting software in Notepad++<br />
We have an open/close folding definition that includes FOR and END_FOR (in addition to other standard commands)<br />
The syntax highlighting highlights FOR, but also highlights the letters “for” and “FOR” in words that contain those strings (not just when they exist alone. So if we use FORCE, FOREIGN, FORMAT,  REINFORCMENT, BEFORE or other words used as a variable name (not part of our language definition file), the “FOR” part is still highlighted.   Since the text editor thinks you are calling the function FOR it messes up code collapsing and is quite a nuisance.  Is there a way to fix this.  It doesn’t seem to be an issue for other commands like IF, AND, OR… why for FOR?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/14672/using-for-in-language-definition-causes-unexpected-results</link><generator>RSS for Node</generator><lastBuildDate>Tue, 06 Oct 2026 03:13:19 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/14672.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 23 Oct 2017 17:12:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to using "FOR" in language definition causes unexpected results on Mon, 23 Oct 2017 22:43:44 GMT]]></title><description><![CDATA[<p dir="auto">bingo…thankyou thankyou thankyou!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/27561</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/27561</guid><dc:creator><![CDATA[Charlie Fuller]]></dc:creator><pubDate>Mon, 23 Oct 2017 22:43:44 GMT</pubDate></item><item><title><![CDATA[Reply to using "FOR" in language definition causes unexpected results on Mon, 23 Oct 2017 19:13:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/charlie-fuller" aria-label="Profile: Charlie-Fuller">@<bdi>Charlie-Fuller</bdi></a></p>
<p dir="auto">I’m guessing your FOR, END_FOR definitions are in the <em><strong>Folding in code 1 style</strong></em> box.   Try moving them to the <em><strong>Folding in code 2 style (separators needed)</strong></em> box.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/27557</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/27557</guid><dc:creator><![CDATA[Jim Dailey]]></dc:creator><pubDate>Mon, 23 Oct 2017 19:13:22 GMT</pubDate></item></channel></rss>