<?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[How to add background highlighting for comments.]]></title><description><![CDATA[<p dir="auto">In one of my custom syntax highlighter files for a specific language, I saw that it is highlighting the background of comments as gray.</p>
<p dir="auto">So, I thought maybe this can be done by some way by interacting with the Scintilla API through external code for comments in any language.</p>
<p dir="auto">So basically, if n++ thinks its a comment, not only is its text highlighted but also its background is highlighted as well.</p>
<p dir="auto">Does anyone know if this can be done and how?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/18216/how-to-add-background-highlighting-for-comments</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 04:34:39 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/18216.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 08 Sep 2019 22:03:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to add background highlighting for comments. on Wed, 11 Sep 2019 05:34:13 GMT]]></title><description><![CDATA[<p dir="auto">Actually, I just found where this can be set in the style configurator.</p>
<p dir="auto">It is not in global styles, so you have to change the background color for each language that is on that list.</p>
<p dir="auto">Solved.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/46976</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/46976</guid><dc:creator><![CDATA[SalviaSage]]></dc:creator><pubDate>Wed, 11 Sep 2019 05:34:13 GMT</pubDate></item><item><title><![CDATA[Reply to How to add background highlighting for comments. on Wed, 11 Sep 2019 05:15:05 GMT]]></title><description><![CDATA[<p dir="auto"><code>I get, that you do not want to change the comment style using the style configuration dialog, right?</code><br />
Actually, I would change it from there but I don’t see anything that has to do with the comments in that list.</p>
<p dir="auto">There is a bunch of other stuff but no comments, so maybe I am missing something?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/46975</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/46975</guid><dc:creator><![CDATA[SalviaSage]]></dc:creator><pubDate>Wed, 11 Sep 2019 05:15:05 GMT</pubDate></item><item><title><![CDATA[Reply to How to add background highlighting for comments. on Tue, 10 Sep 2019 06:57:22 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/salviasage" aria-label="Profile: SalviaSage">@<bdi>SalviaSage</bdi></a></p>
<p dir="auto">Follow these steps to add background highlighting for comments.</p>
<p dir="auto"><strong>step 1:-</strong>  Select the comment line/word to highlight.<br />
<strong>step 2:-</strong> Go to <strong>Search Menu</strong><br />
<strong>step 3:-</strong>  Select <strong>Mark All</strong>.<br />
<strong>step 4:-</strong> you will find 5 sub-menu as <strong>1st to 5th style</strong>.</p>
<p dir="auto"><strong>Note :-</strong></p>
<ul>
<li>Using first style : cyan color.</li>
<li>Using second style : light brown.</li>
<li>Using third  style: yellow.</li>
<li>Using fourth style: purple.</li>
<li>Using fifth style: green.</li>
</ul>
<p dir="auto">I hope above information will be useful for you.<br />
Thank you.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/46956</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/46956</guid><dc:creator><![CDATA[Prahlad-Makwana4145]]></dc:creator><pubDate>Tue, 10 Sep 2019 06:57:22 GMT</pubDate></item><item><title><![CDATA[Reply to How to add background highlighting for comments. on Sun, 08 Sep 2019 23:24:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/salviasage" aria-label="Profile: SalviaSage">@<bdi>SalviaSage</bdi></a></p>
<p dir="auto">what you MAYBE could do is</p>
<ul>
<li>get the bufferactivated notification</li>
<li>check which lexer is set</li>
<li>read from xml which comment styleid(s) are used</li>
<li>reset the background color for this styleid</li>
</ul>
<p dir="auto">but I <strong>ASSUME</strong> that this needs to be done always, meaning on each<br />
bufferactivated  notification.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/46922</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/46922</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Sun, 08 Sep 2019 23:24:22 GMT</pubDate></item><item><title><![CDATA[Reply to How to add background highlighting for comments. on Sun, 08 Sep 2019 23:19:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/salviasage" aria-label="Profile: SalviaSage">@<bdi>SalviaSage</bdi></a></p>
<p dir="auto">I get, that you do not want to change the comment style using the style configuration dialog, right?</p>
<p dir="auto">Via external code, it isn’t easy as well as the comment style isn’t the same always.<br />
For example, in python the comment style id is 1, in perl 2 and in php 124.<br />
In addition, there might be more than one style id defined for comments.<br />
And last but not least, if have read the stylers/themes.xml and you know all comment style ids,<br />
you start fighting with the internal lexer about who sets the background color.</p>
<p dir="auto">All in all, this doesn’t sound practical.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/46921</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/46921</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Sun, 08 Sep 2019 23:19:06 GMT</pubDate></item></channel></rss>