<?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[Attribute &quot;srcset&quot; not recognized as valid&#x2F;standard attribute of the HTML tag &quot;img&quot;]]></title><description><![CDATA[<p dir="auto">Notepad++ V7.8.2 does not recognize the attribute “srcset” as a valid/standard attribute of the HTML tag “img”. Its color is different from the other attributes, see screenshot.</p>
<p dir="auto"><img src="/assets/uploads/files/1578916890727-notepad-resized.png" alt="notepad.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/topic/18753/attribute-srcset-not-recognized-as-valid-standard-attribute-of-the-html-tag-img</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 20:26:39 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/18753.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 13 Jan 2020 12:03:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Attribute &quot;srcset&quot; not recognized as valid&#x2F;standard attribute of the HTML tag &quot;img&quot; on Wed, 15 Jan 2020 19:45:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/17463">@Hans-van-Gelderen</a> said in <a href="/post/49891">Attribute "srcset" not recognized as valid/standard attribute of the HTML tag "img"</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a> Your suggestion works. I have requested the fix for a future release by [issue#18769]</p>
</blockquote>
<p dir="auto">That issue doesn’t exist: the highest numbered issue at <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues" rel="nofollow ugc">the official Notepad++ issue tracker</a> is #7858.</p>
<p dir="auto">Where did you make this feature request?  (please provide full URL)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/49895</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/49895</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 15 Jan 2020 19:45:55 GMT</pubDate></item><item><title><![CDATA[Reply to Attribute &quot;srcset&quot; not recognized as valid&#x2F;standard attribute of the HTML tag &quot;img&quot; on Wed, 15 Jan 2020 19:20:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a> Your suggestion works. I have requested the fix for a future release by [issue#18769]</p>
]]></description><link>https://community.notepad-plus-plus.org/post/49891</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/49891</guid><dc:creator><![CDATA[Hans van Gelderen]]></dc:creator><pubDate>Wed, 15 Jan 2020 19:20:15 GMT</pubDate></item><item><title><![CDATA[Reply to Attribute &quot;srcset&quot; not recognized as valid&#x2F;standard attribute of the HTML tag &quot;img&quot; on Wed, 15 Jan 2020 16:54:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14019">@andrecool-68</a> said in <a href="/post/49885">Attribute "srcset" not recognized as valid/standard attribute of the HTML tag "img"</a>:</p>
<blockquote>
<p dir="auto">For each language you can add your own keywords.</p>
</blockquote>
<p dir="auto">For <strong>some</strong> languages, you can add your own keywords – but not for all languages.  As I explicitly said, for HTML (which is what the OP was asking about), you cannot: “does <em>not</em> have the user-defined keyword [option]”</p>
<p dir="auto">Want proof?  Look at the Style Configurator for the HTML language, not the CSS language.  You literally just had to click 12 lines down in your screenshot to see that HTML <em>does not</em> have those boxes, whereas CSS <em>does</em>.</p>
<p dir="auto"><img src="/assets/uploads/files/1579106914718-37438513-6f80-4001-ba6f-69f908af5adb-image.png" alt="37438513-6f80-4001-ba6f-69f908af5adb-image.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1579106923369-673ae590-141f-4613-bad3-97b2fa561c2e-image.png" alt="673ae590-141f-4613-bad3-97b2fa561c2e-image.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1579106935475-89e9431a-1b05-4da7-83b3-d743d789413d-image.png" alt="89e9431a-1b05-4da7-83b3-d743d789413d-image.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1579106958482-74b8d63f-16d8-454a-aa83-151d8bce05bb-image.png" alt="74b8d63f-16d8-454a-aa83-151d8bce05bb-image.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1579106965724-5f47682a-8653-411c-80df-82fe57f0910e-image.png" alt="5f47682a-8653-411c-80df-82fe57f0910e-image.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1579106969610-0cc36466-b126-4567-b02d-365e74857470-image.png" alt="0cc36466-b126-4567-b02d-365e74857470-image.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1579106973765-957c100a-5b0b-40a0-9491-b8f36a8f02cd-image.png" alt="957c100a-5b0b-40a0-9491-b8f36a8f02cd-image.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1579106977603-bbc074d7-84cf-4c91-b1e6-fec8b4321f83-image.png" alt="bbc074d7-84cf-4c91-b1e6-fec8b4321f83-image.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1579106981705-f4e8edda-bc68-4b46-831f-323c0dfdaaeb-image.png" alt="f4e8edda-bc68-4b46-831f-323c0dfdaaeb-image.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1579106985583-f4bdd70e-5925-40a4-bbc2-68fa6892214a-image.png" alt="f4bdd70e-5925-40a4-bbc2-68fa6892214a-image.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1579106988808-c96af91c-31fa-4b18-83fc-0f89b7c8be9d-image.png" alt="c96af91c-31fa-4b18-83fc-0f89b7c8be9d-image.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1579106992361-b6c1d44f-d4ea-4354-ac13-f57f9400484a-image.png" alt="b6c1d44f-d4ea-4354-ac13-f57f9400484a-image.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1579106996910-70eeaaac-a168-4486-97c1-08030d640623-image.png" alt="70eeaaac-a168-4486-97c1-08030d640623-image.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1579107001642-2d0ac0e3-3b94-4c03-893c-5d6b0f8ee9a2-image.png" alt="2d0ac0e3-3b94-4c03-893c-5d6b0f8ee9a2-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/49886</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/49886</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 15 Jan 2020 16:54:09 GMT</pubDate></item><item><title><![CDATA[Reply to Attribute &quot;srcset&quot; not recognized as valid&#x2F;standard attribute of the HTML tag &quot;img&quot; on Wed, 15 Jan 2020 16:47:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/17463">@Hans-van-Gelderen</a> For each language you can add your own keywords.</p>
<p dir="auto"><img src="https://camo.nodebb.org/53f6121904d68536eea8c193250f0a759cc411d4?url=https%3A%2F%2Fi.imgur.com%2FlcxQcq1.png" alt="Imgur" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/49885</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/49885</guid><dc:creator><![CDATA[andrecool-68]]></dc:creator><pubDate>Wed, 15 Jan 2020 16:47:32 GMT</pubDate></item><item><title><![CDATA[Reply to Attribute &quot;srcset&quot; not recognized as valid&#x2F;standard attribute of the HTML tag &quot;img&quot; on Mon, 13 Jan 2020 16:58:17 GMT]]></title><description><![CDATA[<p dir="auto">Indeed.</p>
<p dir="auto">Unfortunately, the HTML lexer/styler inherited from Scintilla does <em>not</em> have the user-defined keyword optoin (which would be the easiest way to add that in).</p>
<p dir="auto">Fortunately, it appears if you are willing to edit a config file, we should be able to make it work.</p>
<p dir="auto"><strong>Don’t edit any Notepad++ configuration settings until after the end of this sequence</strong></p>
<ol>
<li>Close Notepad++ (all instances)</li>
<li>Open a single instance of Notepad++.</li>
<li>Open the file <code>%appdata%\langs.xml</code> (for a normal installation; for a portable, it would be <code>&lt;install_dir&gt;\langs.xml</code>)</li>
<li>turn on line-wrapping (<strong>View &gt; Word wrap</strong>, if it’s not already enabled)</li>
<li>search down to <code>&lt;Language name="html" ...</code>, and change <code>src srcdoc standby</code> to <code>src srcdoc srcset standby</code>.  (If that’s not your list of keywords in the HTML language entry, place <code>srcset</code> properly alphabetized in the list.)</li>
<li>save</li>
<li>exit Notepad++</li>
<li>reload Notepad++ and look at your file: srcset should now match the highlighting of other recognized attributes</li>
</ol>
<p dir="auto">If you want, you could follow the <a href="https://community.notepad-plus-plus.org/topic/15741/faq-desk-feature-request-or-bug-report">FAQ about feature requests</a> to ask the developers to add the <code>srcset</code> attribute into the default <code>langs.xml</code>, and if it gets implemented, it will be in the next release of Notepad++ after it is implemented.  If you do add the feature request, be sure to add a link to that request in this thread.</p>
<p dir="auto">Good luck,</p>
]]></description><link>https://community.notepad-plus-plus.org/post/49832</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/49832</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 13 Jan 2020 16:58:17 GMT</pubDate></item></channel></rss>