<?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[Autocompletion and spaces]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I’m writing an autocompletion xml file for a User Defined Language and I have an issue with multiple words keywords.<br />
For instance “Pointer on integer” -&gt; the autocompletion shows “Pointer”, “on”, “integer”.<br />
How can I use it as one and only keyword ?</p>
<p dir="auto">thanks a lot !</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/16483/autocompletion-and-spaces</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 01:16:25 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/16483.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 17 Oct 2018 20:56:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Autocompletion and spaces on Thu, 21 Feb 2019 13:12:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14380">@Adriano-Ellero</a> said:</p>
<blockquote>
<p dir="auto">To solve this in the end i have to cancel by hand the invisible   and replace it with a “Normal” empty space.</p>
</blockquote>
<p dir="auto">Seems like you could make that part as painless as possible by recording a macro of the replacement and tying that macro’s execution to a convenient keycombination.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/40109</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40109</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 21 Feb 2019 13:12:48 GMT</pubDate></item><item><title><![CDATA[Reply to Autocompletion and spaces on Thu, 21 Feb 2019 11:41:01 GMT]]></title><description><![CDATA[<p dir="auto">wow   it worked even with quoted text i.e. &lt;rect x=‘0’ y=‘0’ /&gt;</p>
<p dir="auto">thanks <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a><br />
thenks <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/13337">@Raphael</a></p>
<p dir="auto">Unfortunately the final result is that a special character ( ) that is invisible and seems to be an empty space is transferred into my code file and the html style is not able to recognize the entire string as a tag.</p>
<p dir="auto">To solve this in the end i have to cancel by hand the invisible   and replace it with a “Normal” empty space.</p>
<p dir="auto">Still not ideal solution.</p>
<p dir="auto">Once again thanks for the huge effort. Really appreciated. Great community.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/40106</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40106</guid><dc:creator><![CDATA[Adriano Ellero]]></dc:creator><pubDate>Thu, 21 Feb 2019 11:41:01 GMT</pubDate></item><item><title><![CDATA[Reply to Autocompletion and spaces on Wed, 20 Feb 2019 14:41:06 GMT]]></title><description><![CDATA[<p dir="auto">Not that <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/13337">@Raphael</a> is around any more, but since <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14380">@Adriano-Ellero</a> re-vivified this thread:</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14380">@Adriano-Ellero</a>’s question, which is a duplicate of the OP here, was asked again in <a href="https://notepad-plus-plus.org/community/topic/17152/autocomplete-for-complex-svg-tag/2" rel="nofollow ugc">a new thread</a>, and I answered that specific one there – with an answer that contained the essentials from <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/8960">@AZJIO-AZJIO</a>’s answer in this thread.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/13337">@Raphael</a>’s question, as to why &amp;quot worked but &amp;nbsp didn’t: As I’ve seen before (and confirmed <a href="https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Predefined_entities_in_XML" rel="nofollow ugc">on Wikipedia</a>), XML only has a limited subset of <em>named</em> entities, including quot, amp, apos, lt, gt; in XML, anything else needs to be entified in either numeric <code>&amp;#nnnn;</code> or hexadecimal <code>&amp;#xhhhh;</code> entity-notation, or needs the entity name defined in the DTD.  HTML, on the other hand, has hundreds of named entities, including nbsp.  Since the autoCompletion XML files are written in XML, they are limited to XML syntax for entities.</p>
<p dir="auto">However, as <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/13337">@Raphael</a> pointed out, <code>&amp;#160;</code> appears to not work in the autoCompletion file – if my autoCompletion file has</p>
<pre><code>        &lt;KeyWord name="rect&amp;#xa0;x=0&amp;#xa0;y=0" /&gt;
        &lt;KeyWord name="rect160&amp;#160;x=0&amp;#160;y=0" /&gt;
</code></pre>
<p dir="auto">… then the first properly auto-expands to <code>rect x=0 y=0</code>, where the space-like characters are non-breaking spaces (NBSP).  But the second expands to <code>rect160&amp;#160;x=0&amp;#160;y=0</code>.  That seems to be a bug in the way that Notepad++'s autoCompletion parses the XML (either that, or the Wiki article is wrong that XML can handle <code>&amp;#nnnn;</code> entity notation; I am not an XML expert, so do not know).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/40071</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40071</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 20 Feb 2019 14:41:06 GMT</pubDate></item><item><title><![CDATA[Reply to Autocompletion and spaces on Wed, 20 Feb 2019 12:53:30 GMT]]></title><description><![CDATA[<p dir="auto">hi can you also complete an entire string like this? &lt;KeyWord name="rect x=“0” y=“0” "/ &gt;</p>
]]></description><link>https://community.notepad-plus-plus.org/post/40063</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40063</guid><dc:creator><![CDATA[Adriano Ellero]]></dc:creator><pubDate>Wed, 20 Feb 2019 12:53:30 GMT</pubDate></item><item><title><![CDATA[Reply to Autocompletion and spaces on Sun, 21 Oct 2018 17:23:30 GMT]]></title><description><![CDATA[<p dir="auto">Hey, thanks for answering. I cannot find-out how ti insert the non-breaking space in the xml file.<br />
If I do &lt;KeyWord name=“pointer&amp;nbsp;on” /&gt; , the autocompletion returns “pointer&amp;#160;on”</p>
<p dir="auto">However, it works if I insert &amp;quot , why it doesn’t work for the &amp;nbsp or &amp;#160 ?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/35595</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/35595</guid><dc:creator><![CDATA[Raphael]]></dc:creator><pubDate>Sun, 21 Oct 2018 17:23:30 GMT</pubDate></item><item><title><![CDATA[Reply to Autocompletion and spaces on Fri, 19 Oct 2018 18:05:28 GMT]]></title><description><![CDATA[<p dir="auto">I could not achieve this. I went another way. Use non-breaking space 160. Make a macro that replaces the non-breaking space with a regular space (160 by 32). Among other things, you can use line breaks, that is, insert multi-line text using mnemonic.<br />
“If&amp;# xa0;$Trg&amp;# xa0;Then&amp;# x0d;&amp;# x0a;&amp;# x09;&amp;# x0d;&amp;# x0a;EndIf”<br />
Remove the spaces, I added them to show the code as is</p>
<p dir="auto">Add a hot key to the macro and after inserting auto-completion, press the hotkey.<br />
There is another option - use version 6.5.3. The last, which allowed the space.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/35568</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/35568</guid><dc:creator><![CDATA[AZJIO AZJIO]]></dc:creator><pubDate>Fri, 19 Oct 2018 18:05:28 GMT</pubDate></item></channel></rss>