<?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[# colors lines comments when they should not be]]></title><description><![CDATA[<p dir="auto">Basic Info:  Running on Windows 11, fully up-to-date as of this post. Using Notepad v8.9.8.1 (64-bit)</p>
<p dir="auto">I am sure this is somehow my fault and I am hoping folks will take pity on me and help… (hopeful smile)</p>
<p dir="auto">When I edit INI files, lines that begin with EITHER a semicolon ‘;’ OR a hash mark (AKA pound symbol, ‘#’) are colored as comments. HOWEVER, the Windows INI processing functions DO NOT consider a ‘#’ symbol as a comment marker.</p>
<p dir="auto">I have not touched the <strong>langs.xml</strong> file that was installed with Notepad++ and when I <em>looked</em> at it, I didn’t see anything that indicated it should consider the ‘#’ to begin a comment line.</p>
<p dir="auto">I have also created my own language definition for a custom config file type that I use. My files also use an initial semicolon as a comment marker and also <strong>do not</strong> use an initial ‘#’ as a comment marker.  HOWEVER, Notepad++'s syntax coloring disagrees and colors lines starting with a ‘#’ as comments anyway.</p>
<p dir="auto">Is this a bug in Notepad++'s syntax coloring system, or is there some way that I defined ‘#’ as a comment indicator in both INI and my custom files without ever actually referencing that particular character in the files (except as an <strong>operator</strong> in my custom language definition)?</p>
<p dir="auto">How can I correct this annoying behavior?  Since I also maintain config files on some linux servers, I often mix up the comment characters and Notepad++'s incorrect coloring is causing it to take longer than it should for me to notice my mistakes.</p>
<p dir="auto">Thanks!  I hope…</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/27718/colors-lines-comments-when-they-should-not-be</link><generator>RSS for Node</generator><lastBuildDate>Mon, 16 Nov 2026 15:49:40 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/27718.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 16 Nov 2026 14:09:26 GMT</pubDate><ttl>60</ttl></channel></rss>