<?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 assign arbitrary color to standart C++ or user defined functions ?]]></title><description><![CDATA[<p dir="auto">Hi,<br />
i want append extra color option to Style Configurator for standart C++ , winapi or user defined  functions that Style name is “SYSTEM FUNCS” (i using darkmode) . i added to stylers.xml, stylers.model.xml and  DarkModeDefault.xml files this line :<br />
&lt;WordsStyle name=“SYSTEM FUNCS” styleID=“25” fgColor=“FF00FF” bgColor=“000000” fontName=“Lucida Console” fontStyle=“0” fontSize=“14” keywordClass=“type3”&gt;&lt;/WordsStyle&gt;</p>
<p dir="auto">i also added to langs.xml, langs.model.xml files this line :<br />
&lt;Keywords name=“type3”&gt;GlobalReAlloc GlobalAlloc ( … etc few function names )&lt;/Keywords&gt;<br />
Now i can see “SYSTEM FUNCS” option and function names in C++ Language Styles under Style Configurator , but during editing  C++ files colors of functions as new keywords dont change according my setting .<br />
What can i do for this ? .<br />
<img src="/assets/uploads/files/1715519068539-style_config.png" alt="style_config.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/topic/25773/how-to-assign-arbitrary-color-to-standart-c-or-user-defined-functions</link><generator>RSS for Node</generator><lastBuildDate>Sat, 07 Nov 2026 01:15:07 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/25773.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 12 May 2024 13:04:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to assign arbitrary color to standart C++ or user defined functions ? on Tue, 14 May 2024 17:32:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> Thank you very much, it works on 8.6.7 portable :) .</p>
]]></description><link>https://community.notepad-plus-plus.org/post/94826</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/94826</guid><dc:creator><![CDATA[unal mk]]></dc:creator><pubDate>Tue, 14 May 2024 17:32:08 GMT</pubDate></item><item><title><![CDATA[Reply to How to assign arbitrary color to standart C++ or user defined functions ? on Mon, 13 May 2024 00:45:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> said in <a href="/post/94787">How to assign arbitrary color to standart C++ or user defined functions ?</a>:</p>
<blockquote>
<p dir="auto">but the newly released v8.6.6 will (so new, it’s not even in auto-update yet</p>
</blockquote>
<p dir="auto">So new, but has already even been superseded by 8.6.7.  :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/94790</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/94790</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 13 May 2024 00:45:54 GMT</pubDate></item><item><title><![CDATA[Reply to How to assign arbitrary color to standart C++ or user defined functions ? on Sun, 12 May 2024 22:51:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/unal-mk" aria-label="Profile: unal-mk">@<bdi>unal-mk</bdi></a> ,</p>
<p dir="auto">After my experimentation, I found something even better: v8.6.5 wouldn’t allow the following, but the <a href="https://community.notepad-plus-plus.org/topic/25766/notepad-v8-6-6-release">newly released v8.6.6 will</a> (so new, it’s not even in auto-update yet, so you will have to download it from the links in the announcement):</p>
<ol>
<li>Download and Install v8.6.6</li>
<li>Edit <code>%AppData%\Notepad++\stylers.xml</code> (or, in your case, <code>%AppData%\Notepad++\theme\DarkModeDefault.xml</code>)</li>
<li>Search for <code>name="cpp"</code></li>
<li>Add one of the following, depending on your active theme:
<ul>
<li>For light mode (<code>stylers.xml</code>):<br />
<code>&lt;WordsStyle name="GLOBAL CLASS" styleID="19" fgColor="FF8080" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" keywordClass="instre2" &gt;instre2 useri2&lt;/WordsStyle&gt;</code><br />
somewhere in the “cpp” block:<br />
<img src="/assets/uploads/files/1715553726289-1d897b0b-2af2-4f3e-bdcf-af589f6f0cd9-image.png" alt="1d897b0b-2af2-4f3e-bdcf-af589f6f0cd9-image.png" class=" img-fluid img-markdown" /></li>
<li>For <code>themes\DarkModeDefault.xml</code> use:<br />
<code>&lt;WordsStyle name="GLOBAL CLASS" styleID="19" fgColor="FF8080" bgColor="3F3F3F" fontName="" fontStyle="0" fontSize="" keywordClass="instre2"&gt;instre2 useri2&lt;/WordsStyle&gt;</code></li>
<li>For any other theme, it will be similar, but you will probably need to edit the colors to match your theme, either now or after step 8</li>
</ul>
</li>
<li><strong>File &gt; Save</strong></li>
<li><strong>File &gt; Exit</strong></li>
<li>Run Notepad++ again</li>
<li>You will get something like:<br />
<img src="/assets/uploads/files/1715553978411-cf88eb58-f0a1-4275-b5a7-2533029b9686-image.png" alt="cf88eb58-f0a1-4275-b5a7-2533029b9686-image.png" class=" img-fluid img-markdown" /></li>
</ol>
<p dir="auto">If you don’t like my suggestion for DarkModeDefault, you can then change the style to match your whims (and obviously the list of user-defined keywords)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/94787</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/94787</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sun, 12 May 2024 22:51:37 GMT</pubDate></item><item><title><![CDATA[Reply to How to assign arbitrary color to standart C++ or user defined functions ? on Sun, 12 May 2024 15:36:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/unal-mk" aria-label="Profile: unal-mk">@<bdi>unal-mk</bdi></a> ,</p>
<p dir="auto">You cannot just arbitrarily add a new list of keywords in the XML and have it automatically propagate through Notepad++ into the lexer.  They both have to be coded and compiled to make use of a given list.</p>
<p dir="auto">I haven’t had time to experiment (maybe later today or tomorrow), but I <em>think</em> the lexer might have one more keyword list that Notepad++ isn’t coded to use.  If so, I will put in a PR to enable it in a future NPP release.  If not, I will let you know.</p>
<p dir="auto"><em>Update</em>: <a href="https://community.notepad-plus-plus.org/topic/24228/">this discussion</a> has a script that works with the Python script plugin that should give you the extra list</p>
]]></description><link>https://community.notepad-plus-plus.org/post/94782</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/94782</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sun, 12 May 2024 15:36:58 GMT</pubDate></item></channel></rss>