<?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[autocomplete for complex svg tag]]></title><description><![CDATA[<p dir="auto">I tried to edit html.xml file within autoCompletion folder<br />
I can add new tags like &lt;KeyWord name=“rectNew” /&gt;<br />
I want to write SVG tags faster including entire tag attributes that are often the same.<br />
But I can’t add attributes to my tag.<br />
I would expect that works like this:<br />
&lt;KeyWord name="rect x=‘0’ y=‘0’ " /&gt;<br />
but it does not!<br />
empty space works splitting the entire tags in different part of it. I can find x=0 in the option list but not autocompleted as wanted at once.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/17152/autocomplete-for-complex-svg-tag</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 20:34:51 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/17152.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 20 Feb 2019 12:59:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to autocomplete for complex svg tag on Thu, 21 Feb 2019 10:16:06 GMT]]></title><description><![CDATA[<p dir="auto">Thanks a lot Peter, I tried Macro also and I found it simple and “clean enough”…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/40105</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40105</guid><dc:creator><![CDATA[Adriano Ellero]]></dc:creator><pubDate>Thu, 21 Feb 2019 10:16:06 GMT</pubDate></item><item><title><![CDATA[Reply to autocomplete for complex svg tag on Wed, 20 Feb 2019 14:58:33 GMT]]></title><description><![CDATA[<ol start="4">
<li>A combo of my original search-and-replace suggestion and the first half of suggestion #2: use PythonScript to define a callback on the SAVE event, where PythonScript would then do a search-and-replace for all <code>\xa0</code> characters and replace them with <code>\x20</code> (space) characters.  That way, you could use the auto-complete as implemented, but have PythonScript “remember” to do the replace for you every time that you save.</li>
</ol>
<p dir="auto">I think #1 would be the easiest if you’re going to have just that one sequence with spaces.  #4 will be easier if you have multiple space-containing sequences you want to autocomplete.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/40073</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40073</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 20 Feb 2019 14:58:33 GMT</pubDate></item><item><title><![CDATA[Reply to autocomplete for complex svg tag on Wed, 20 Feb 2019 14:54:05 GMT]]></title><description><![CDATA[<p dir="auto">If that two-step process seems dirty to you, I am not sure I’d be able to recommend a process that would be “clean” in your opinion.  But there are more ways to accomplish the same task, though not using the Auto-Completion feature of Notepad++ as it’s currently implemented</p>
<ol>
<li>
<p dir="auto">record a macro using the <strong>Macro</strong> menu: that macro would involve you typing the sequence, and saving it to a keystroke</p>
<ol>
<li>place the cursor where you want</li>
<li><strong>Macro &gt; Start Recording</strong></li>
<li>type <code>rect x=0 y=0</code></li>
<li><strong>Macro &gt; Stop Recording</strong></li>
<li><strong>Macro &gt; Save Current Recorded Macro</strong>, then give it a name and keyboard shortcut</li>
<li>in the future, use that keyboard shortcut to insert the <code>rect x=0 y=0</code></li>
</ol>
</li>
<li>
<p dir="auto">Write your own plugin or PythonScript to help you automate frequent sequences that don’t work in auto-complete; for example, maybe have the Python script look for some special prefix (maybe <code>\|</code>) before at least 4 alphanumeric characters, and if it sees that, have it pop up your own auto-complete chooser based on those 4 characters: for example, maybe typing <code>\|rect</code> would pop-up your chooser, then replace <code>\|rect</code> with <code>rect x=0 y=0</code> after you selected it from the dropdown.</p>
</li>
<li>
<p dir="auto">submit a feature request, per <a href="https://notepad-plus-plus.org/community/topic/15741/faq-desk-feature-request-or-bug-report" rel="nofollow ugc">the feature-request/bug-report FAQ</a>, which points to both the original thread and your duplicate thread here, and explains in clear words with examples what feature you want, and then be prepared to wait, and be willing to use a workaround in the mean time (because there is no guarantee of the feature being implemented, let alone being implemented in a quick turnaround time).</p>
</li>
</ol>
]]></description><link>https://community.notepad-plus-plus.org/post/40072</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40072</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 20 Feb 2019 14:54:05 GMT</pubDate></item><item><title><![CDATA[Reply to autocomplete for complex svg tag on Wed, 20 Feb 2019 14:32:56 GMT]]></title><description><![CDATA[<p dir="auto">thx Peter<br />
it sounds to me really dirty… other options?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/40070</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40070</guid><dc:creator><![CDATA[Adriano Ellero]]></dc:creator><pubDate>Wed, 20 Feb 2019 14:32:56 GMT</pubDate></item><item><title><![CDATA[Reply to autocomplete for complex svg tag on Wed, 20 Feb 2019 14:27:43 GMT]]></title><description><![CDATA[<p dir="auto">Per the <a href="https://notepad-plus-plus.org/community/topic/16483/autocompletion-and-spaces" rel="nofollow ugc">other thread you posted in minutes before this post</a>, spaces in the autocomplete file haven’t worked since v6.5.3.</p>
<p dir="auto">That other thread gave a workaround, which is to embed some other character, and then after auto-completion is done, replace that other character with the space.</p>
<p dir="auto">For example, I added</p>
<pre><code>        &lt;KeyWord name="rect&amp;#xa0;nxa0x=0&amp;#xa0;nxa0y=0" /&gt;
</code></pre>
<p dir="auto">to my <code>autoCompletion\html.xml</code> file, where <code>&amp;#xa0;</code> is the numerical entity for the non-breaking space.</p>
<p dir="auto">When I reloaded and typed <code>rect</code>, the auto-complete popdown shows <code>rect x=0 y=0</code> – but those space-like characters are really non-breaking spaces.  Since the resulting SVG will not work with non-breaking spaces, you can then do a search/replace regex with Find=<code>\xa0</code> (non-breaking space in regex character escape), Replace=<code>\x20</code> (space in regex character escape)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/40069</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40069</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 20 Feb 2019 14:27:43 GMT</pubDate></item></channel></rss>