<?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[[IDEA] Highlight all text after X number of characters&#x2F;words]]></title><description><![CDATA[<p dir="auto">I hope it’s ok to post ideas for plugins - if not feel free to delete!</p>
<p dir="auto">You know those fields on websites, where you can enter 2000 characters of text and not more?</p>
<p dir="auto">My idea for a plugin would provide a simple UI, where you specify 1) the number, 2) whether you’re counting words or characters, and 3) if characters include non-space or not. All text beyond that limit will be in red.</p>
<p dir="auto">This would be useful in editing texts down to the proper limit.</p>
<p dir="auto">I’m not a dev, but maybe there’s someone who finds this interesting…!</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20794/idea-highlight-all-text-after-x-number-of-characters-words</link><generator>RSS for Node</generator><lastBuildDate>Sun, 10 May 2026 01:56:11 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20794.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 25 Feb 2021 13:38:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [IDEA] Highlight all text after X number of characters&#x2F;words on Thu, 25 Feb 2021 17:51:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/oroboros" aria-label="Profile: oroboros">@<bdi>oroboros</bdi></a></p>
<p dir="auto">I can imagine a Python script, must have PythonScript plugin installed, of course, if the UI can be replaced by Npp editor itself. Basically a script that monitors what you type and if the conditions are met, change the colour.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63259</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63259</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Thu, 25 Feb 2021 17:51:17 GMT</pubDate></item><item><title><![CDATA[Reply to [IDEA] Highlight all text after X number of characters&#x2F;words on Thu, 25 Feb 2021 17:44:58 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for this!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63257</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63257</guid><dc:creator><![CDATA[oroboros]]></dc:creator><pubDate>Thu, 25 Feb 2021 17:44:58 GMT</pubDate></item><item><title><![CDATA[Reply to [IDEA] Highlight all text after X number of characters&#x2F;words on Thu, 25 Feb 2021 15:33:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/oroboros" aria-label="Profile: oroboros">@<bdi>oroboros</bdi></a> said in <a href="/post/63246">[IDEA] Highlight all text after X number of characters/words</a>:</p>
<blockquote>
<p dir="auto">My idea for a plugin would provide a simple UI, where you specify 1) the number, 2) whether you’re counting words or characters, and 3) if characters include non-space or not. All text beyond that limit will be in red.</p>
</blockquote>
<blockquote>
<p dir="auto">I guess my idea was to have a visual representation, where you actually see how many words/chars you’re over as you’re typing, and dwindle your way down til you have no more “red”.</p>
</blockquote>
<p dir="auto">So one thing we do here is try to offer alternatives to help you in what you’re trying to do.  Often the alternatives are good in and of themselves, but quite often they aren’t exactly matching the original desire.</p>
<p dir="auto">It’s great to have an “idea for a plugin”, but nobody (but perhaps yourself, if you’re capable) is going to jump on that and create a plugin.  It just doesn’t happen that way.</p>
<p dir="auto">And if you think your idea is super, keep in mind that it may be useful to just yourself, or a limited number of other users.  Plugin developers or Notepad++ developers aren’t going to implement your idea, because of its limited applicability.</p>
<p dir="auto">Suggest you consider the alternatives presented, or possibly hope for more replies with additional options.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63250</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63250</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 25 Feb 2021 15:33:21 GMT</pubDate></item><item><title><![CDATA[Reply to [IDEA] Highlight all text after X number of characters&#x2F;words on Thu, 25 Feb 2021 15:28:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a></p>
<blockquote>
<p dir="auto">two looong posts</p>
</blockquote>
<blockquote>
<p dir="auto">I haven’t created any issue yet!</p>
</blockquote>
<p dir="auto">Yes, I remember them now.  Thanks for the refresher, though.<br />
If you’re going to make issue(s) out of your findings, then there is “no time like the present”!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63248</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63248</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 25 Feb 2021 15:28:26 GMT</pubDate></item><item><title><![CDATA[Reply to [IDEA] Highlight all text after X number of characters&#x2F;words on Thu, 25 Feb 2021 15:16:53 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a> and <strong>All</strong>,</p>
<p dir="auto"><strong>Alan</strong>, you said :</p>
<blockquote>
<p dir="auto">Hmm, thinking about it, I’m not sure how multi-byte characters would interact with the Summary data I showed before. Would take further experimentation…</p>
</blockquote>
<p dir="auto">To that purpose, you could look at these <strong>two looong</strong> posts, written in <strong>October 2020</strong> :</p>
<p dir="auto"><a href="https://community.notepad-plus-plus.org/topic/20218/tests-and-impressions-on-the-view-summary-functionality">https://community.notepad-plus-plus.org/topic/20218/tests-and-impressions-on-the-view-summary-functionality</a></p>
<hr />
<p dir="auto">Take your time to fully <strong>assimilate</strong> all the notions ! And, of course, you can <strong>test</strong> my different <strong>counting</strong> regexes, for possible <strong>error(s)</strong> !</p>
<p dir="auto">Just note, <strong>Alan</strong>, that I haven’t created any <strong>issue</strong> yet, regarding the <strong><code>summary</code></strong> feature !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63247</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63247</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Thu, 25 Feb 2021 15:16:53 GMT</pubDate></item><item><title><![CDATA[Reply to [IDEA] Highlight all text after X number of characters&#x2F;words on Thu, 25 Feb 2021 15:12:52 GMT]]></title><description><![CDATA[<p dir="auto">I guess my idea was to have a visual representation, where you actually see how many words/chars you’re over as you’re typing, and dwindle your way down til you have no more “red”.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63246</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63246</guid><dc:creator><![CDATA[oroboros]]></dc:creator><pubDate>Thu, 25 Feb 2021 15:12:52 GMT</pubDate></item><item><title><![CDATA[Reply to [IDEA] Highlight all text after X number of characters&#x2F;words on Thu, 25 Feb 2021 14:38:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: Michael-Vincent">@<bdi>Michael-Vincent</bdi></a> said in <a href="/post/63241">[IDEA] Highlight all text after X number of characters/words</a>:</p>
<blockquote>
<p dir="auto">The “Pos” tells you the position in the file, i.e., number of characters you’ve typed.  So it isn’t really a count down, rather a count up and it doesn’t care about word or non-word characters, it just counts every character (including newlines and other such stuff).</p>
</blockquote>
<p dir="auto">Yes, except it isn’t very good for this purpose if you have multi-byte UTF-8 characters in your data, as it is more of a byte-based thing, than a character-based thing.</p>
<p dir="auto">Hmm, thinking about it, I’m not sure how multi-byte characters would interact with the <em>Summary</em> data I showed before.  Would take further experimentation…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63243</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63243</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 25 Feb 2021 14:38:07 GMT</pubDate></item><item><title><![CDATA[Reply to [IDEA] Highlight all text after X number of characters&#x2F;words on Thu, 25 Feb 2021 14:29:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/oroboros" aria-label="Profile: oroboros">@<bdi>oroboros</bdi></a></p>
<p dir="auto">You can already get (some of) this information in the status bar:</p>
<p dir="auto"><img src="/assets/uploads/files/1614263282280-6abac6e3-3546-4b7e-9359-0856e0591d57-image.png" alt="6abac6e3-3546-4b7e-9359-0856e0591d57-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The “Pos” tells you the position in the file, i.e., number of characters you’ve typed.  So it isn’t really a count down, rather a count up and it doesn’t care about word or non-word characters, it just counts every character (including newlines and other such stuff).</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63241</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63241</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Thu, 25 Feb 2021 14:29:29 GMT</pubDate></item><item><title><![CDATA[Reply to [IDEA] Highlight all text after X number of characters&#x2F;words on Thu, 25 Feb 2021 13:59:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/oroboros" aria-label="Profile: oroboros">@<bdi>oroboros</bdi></a></p>
<p dir="auto">Doesn’t the <em>View</em> menu’s <em>Summary</em> command provide most of this information?  Sample:</p>
<p dir="auto"><img src="/assets/uploads/files/1614260977624-d0db15fa-42c7-4ed7-8bee-45c638ad8b20-image.png" alt="d0db15fa-42c7-4ed7-8bee-45c638ad8b20-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Additionally, if you put some data you want to validate to a certain length into a new N++ tab and then run the following <em>Find All in Current Document</em> regular expression search on it, it should aid the task, matching only text that is less than or equal to your specified limit:</p>
<p dir="auto">find: <code>(?-s)\A.{1,200}</code></p>
<p dir="auto">The above example would be useful for a 200-character limit.<br />
Lengths up to and including 200 would be matched.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63238</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63238</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 25 Feb 2021 13:59:57 GMT</pubDate></item></channel></rss>