<?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 display CSS style on a PHP page?]]></title><description><![CDATA[<p dir="auto">Hi.</p>
<p dir="auto">I have a PHP page that’s full of CSS and I’m wanting to open the PHP page, yet have the style be CSS so I can read the CSS easily.</p>
<p dir="auto">How to do this?</p>
<p dir="auto">Thanks.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/19599/how-to-display-css-style-on-a-php-page</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Jul 2026 12:10:58 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/19599.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 23 Jun 2020 17:24:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to display CSS style on a PHP page? on Wed, 24 Jun 2020 17:47:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jonathan-nich" aria-label="Profile: Jonathan-Nich">@<bdi>Jonathan-Nich</bdi></a> ,</p>
<p dir="auto">If you want to use <a class="plugin-mentions-user plugin-mentions-a" href="/user/andrecool-68" aria-label="Profile: andrecool-68">@<bdi>andrecool-68</bdi></a>’s suggestion of adding the lexers to the context menu: in case it wasn’t clear, the arrow wasn’t meant to indicate that opening the <strong>Languages</strong> menu will give the popup in the screenshot – rather, he modified his right-click ContextMenu to include a <strong>Syntax Language</strong> folder which allows changing to his favorite list of languges.   See <a href="https://community.notepad-plus-plus.org/post/51973">this discussion</a>, where we delve more deeply into how <a class="plugin-mentions-user plugin-mentions-a" href="/user/andrecool-68" aria-label="Profile: andrecool-68">@<bdi>andrecool-68</bdi></a> made that folder in the context menu.  To make the edits, you will use <strong>Settings &gt; Edit Popup ContextMenu</strong> to change the settings in <code>contextMenu.xml</code>.  See the <a href="https://npp-user-manual.org/docs/config-files/#the-context-menu-contextmenu-xml" rel="nofollow ugc"><code>contextMenu</code> docs here</a> for more on the syntax.</p>
<p dir="auto">Alternately, you could set up a script similar to the ones described <a href="https://community.notepad-plus-plus.org/post/51219">in this other thread</a>.  The post I linked contains a script which toggles between XML and HTML, which could be quickly adapted to work with CSS and PHP.  Throughout the thread, there are also examples of using a macro to just set the language instead of toggling, and other similar concepts.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55311</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55311</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 24 Jun 2020 17:47:58 GMT</pubDate></item><item><title><![CDATA[Reply to How to display CSS style on a PHP page? on Wed, 24 Jun 2020 17:32:23 GMT]]></title><description><![CDATA[<p dir="auto">In such cases, I constantly switch the language syntax, and to make it more convenient, I duplicated it in the context menu</p>
<p dir="auto"><img src="/assets/uploads/files/1593019806685-%D0%B1%D0%B5%D0%B7%D1%8B%D0%BC%D1%8F%D0%BD%D0%BD%D1%8B%D0%B9.png" alt="Безымянный.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/55309</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55309</guid><dc:creator><![CDATA[andrecool-68]]></dc:creator><pubDate>Wed, 24 Jun 2020 17:32:23 GMT</pubDate></item><item><title><![CDATA[Reply to How to display CSS style on a PHP page? on Wed, 24 Jun 2020 07:04:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jonathan-nich" aria-label="Profile: Jonathan-Nich">@<bdi>Jonathan-Nich</bdi></a></p>
<p dir="auto">To my knowledge, there is no lexer that contains PHP <strong>and</strong> CSS.<br />
What you can try is something I have posted <a href="https://community.notepad-plus-plus.org/topic/17283/perl-language-syntax-highlighting-troubles-bug-or-limitation/111?_=1592981944301">here</a>.<br />
But I don’t know if this is sufficient in your case.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55299</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55299</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 24 Jun 2020 07:04:35 GMT</pubDate></item></channel></rss>