<?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[c++ syntax for all files]]></title><description><![CDATA[<p dir="auto">c++ syntax for all files - how i can do this?<br />
I disabled all syntaxes except с++, but this does not work.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/18875/c-syntax-for-all-files</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Jul 2026 17:59:28 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/18875.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 06 Feb 2020 15:03:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to c++ syntax for all files on Fri, 07 Feb 2020 19:17:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ws-%D1%81%D1%82%D0%B0%D1%81" aria-label="Profile: wS-Стас">@<bdi>wS-Стас</bdi></a> said in <a href="/post/50399">c++ syntax for all files</a>:</p>
<blockquote>
<p dir="auto">And there are times when the highlighting does not work at all and in order for it to work, you need to restart the program or close the file and open it again.</p>
</blockquote>
<p dir="auto">That is actually one thing I would expect if a lexer is used which is not written for that kind of file.<br />
I never experienced this if the correct lexer for the current file did the highlighting.</p>
<p dir="auto">In order to make this work, that every programming language file, as far as notepad++ knows it,<br />
displays its comment in the same color and font you have to go through each defined language<br />
and reconfigure there comment line settings.</p>
<p dir="auto">Another alternative might be to explicitly mark those lines like here</p>
<p dir="auto"><img src="/assets/uploads/files/1581102892106-a52ef6c3-577e-4b2d-930b-f83c26e9e8a8-image.png" alt="a52ef6c3-577e-4b2d-930b-f83c26e9e8a8-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Might be possible by recording a macro - didn’t try it.</p>
<p dir="auto">Or using a scripting language like <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> mentioned.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50403</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50403</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Fri, 07 Feb 2020 19:17:34 GMT</pubDate></item><item><title><![CDATA[Reply to c++ syntax for all files on Fri, 07 Feb 2020 19:01:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ws-%D1%81%D1%82%D0%B0%D1%81" aria-label="Profile: wS-Стас">@<bdi>wS-Стас</bdi></a> said in <a href="/post/50399">c++ syntax for all files</a>:</p>
<blockquote>
<p dir="auto">when the highlighting does not work at all</p>
</blockquote>
<p dir="auto">Never seen that happen.  If you have reproducible circumstances, that would be good to share.</p>
<p dir="auto">(on rare occasion, I have seen it <em>look</em> like highlighting is temporarily missing because a redraw didn’t happen at the right time; usually just switching to another tab in Notepad++, and then back, which force the redraw)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50401</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50401</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 07 Feb 2020 19:01:13 GMT</pubDate></item><item><title><![CDATA[Reply to c++ syntax for all files on Fri, 07 Feb 2020 18:59:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ws-%D1%81%D1%82%D0%B0%D1%81" aria-label="Profile: wS-Стас">@<bdi>wS-Стас</bdi></a> said in <a href="/post/50399">c++ syntax for all files</a>:</p>
<blockquote>
<p dir="auto">To be more precise, i am only interested in comments and lines.</p>
</blockquote>
<p dir="auto">You can add extra highlighting to any builtin lexer (like the PHP lexer) using regexes via the script <code>EnhanceAnyBuiltinLexer.py</code> that <a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> shares <a href="https://notepad-plus-plus.org/community/topic/17283/perl-language-syntax-highlighting-troubles-bug-or-limitation/111" rel="nofollow ugc">in this linked post</a>.  A variant of that script could be made to work without reference to which lexer is active, which would be a way to highlight/color/style comments and quotes the same in all languages.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50400</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50400</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 07 Feb 2020 18:59:18 GMT</pubDate></item><item><title><![CDATA[Reply to c++ syntax for all files on Fri, 07 Feb 2020 18:56:49 GMT]]></title><description><![CDATA[<p dir="auto">I want to do the same highlighting for all file types. To be more precise, i am only interested in comments and lines.</p>
<p dir="auto">//<br />
/**/<br />
‘’<br />
“”</p>
<p dir="auto">And there are times when the highlighting does not work at all and in order for it to work, you need to restart the program or close the file and open it again.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50399</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50399</guid><dc:creator><![CDATA[wS Стас]]></dc:creator><pubDate>Fri, 07 Feb 2020 18:56:49 GMT</pubDate></item><item><title><![CDATA[Reply to c++ syntax for all files on Fri, 07 Feb 2020 18:43:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ws-%D1%81%D1%82%D0%B0%D1%81" aria-label="Profile: wS-Стас">@<bdi>wS-Стас</bdi></a></p>
<p dir="auto">may I ask you what you really try to achieve?<br />
Setting the cpp lexer to every document might not do<br />
what you think it would do.<br />
For example, a cpp lexer is not able to lex a php file correctly.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50395</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50395</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Fri, 07 Feb 2020 18:43:20 GMT</pubDate></item><item><title><![CDATA[Reply to c++ syntax for all files on Thu, 06 Feb 2020 16:12:30 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://prnt.sc/qyiyo0" rel="nofollow ugc">https://prnt.sc/qyiyo0</a></p>
<p dir="auto">I turned off all languages except c++, and even this does not help, the .php file opens with .php highlighting. It’s stupid… Exist properties “-l cpp &lt;file&gt;”, but how i can do this for all files?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50365</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50365</guid><dc:creator><![CDATA[wS Стас]]></dc:creator><pubDate>Thu, 06 Feb 2020 16:12:30 GMT</pubDate></item><item><title><![CDATA[Reply to c++ syntax for all files on Thu, 06 Feb 2020 16:08:05 GMT]]></title><description><![CDATA[<p dir="auto">Yes, for examle i have “php” in “User ext” and anyway it’s not working.<br />
<a href="https://prnt.sc/qyiwft" rel="nofollow ugc">https://prnt.sc/qyiwft</a></p>
<p dir="auto">I think because: <a href="https://prnt.sc/qyiuyr" rel="nofollow ugc">https://prnt.sc/qyiuyr</a><br />
I can’t edit left side (“default ext”). When i open .php file, i have .php highlighting.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50364</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50364</guid><dc:creator><![CDATA[wS Стас]]></dc:creator><pubDate>Thu, 06 Feb 2020 16:08:05 GMT</pubDate></item><item><title><![CDATA[Reply to c++ syntax for all files on Thu, 06 Feb 2020 15:51:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ws-%D1%81%D1%82%D0%B0%D1%81" aria-label="Profile: wS-Стас">@<bdi>wS-Стас</bdi></a></p>
<p dir="auto">Well, you might try defining what “all files” really means by putting their extensions here:</p>
<p dir="auto"><img src="/assets/uploads/files/1581004287341-5872256b-d605-43df-a728-a2c373af1b27-image.png" alt="5872256b-d605-43df-a728-a2c373af1b27-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/50363</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50363</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 06 Feb 2020 15:51:39 GMT</pubDate></item></channel></rss>