<?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[Is it possible to merge two lines in a KML file ?]]></title><description><![CDATA[<p dir="auto">Hey guys,</p>
<p dir="auto">in Google Earth it is unfortunately not possible to change the size of the labeling of several placemarks at once. It is only possible for one placemark.</p>
<p dir="auto">I´m wondering whether it is possible with Notepad ++.</p>
<p dir="auto">The size of the label is saved in a KML file with the following code:</p>
<p dir="auto">&lt;LabelStyle&gt;<br />
&lt;scale&gt;0.9&lt;/scale&gt;<br />
&lt;/LabelStyle&gt;</p>
<p dir="auto">All this three lines end with LF (Line Feed)</p>
<p dir="auto">Is it possible to remove LF after &lt;LabelStyle&gt;  to get  &lt;LabelStyle&gt; and &lt;scale&gt;0.9&lt;/scale&gt; into one line like this ?</p>
<p dir="auto">&lt;LabelStyle&gt;&lt;scale&gt;0.9&lt;/scale&gt;<br />
&lt;/LabelStyle&gt;LF</p>
<p dir="auto">or even like this ?</p>
<p dir="auto">&lt;LabelStyle&gt;&lt;scale&gt;0.9&lt;/scale&gt;&lt;/LabelStyle&gt;</p>
<p dir="auto">You could then use Find and Replace to change the size of the label for many hundreds of placemarks.</p>
<p dir="auto">Thanks for your help !!!<br />
With kind regards<br />
Josef</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/25857/is-it-possible-to-merge-two-lines-in-a-kml-file</link><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Sep 2026 05:22:33 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/25857.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 05 Jun 2024 07:51:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Is it possible to merge two lines in a KML file ? on Thu, 06 Jun 2024 07:41:42 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><br />
… you guys are really incredible … for me this is another dimension !!! … wow … it worked great !!! … and I hope that your solutions will help many many others … I’m pretty sure about that, as I spent hours !!! trying to find a solution before, as this is not possible with Google Earth and there is no third party software solution yet …<br />
Thank you so much …  ;-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/95254</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/95254</guid><dc:creator><![CDATA[Josef Moertl]]></dc:creator><pubDate>Thu, 06 Jun 2024 07:41:42 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to merge two lines in a KML file ? on Wed, 05 Jun 2024 13:17:31 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/josef-moertl" aria-label="Profile: josef-moertl">@<bdi>josef-moertl</bdi></a>, <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">Of course, the <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a> solution works nice ! But, as you said :</p>
<blockquote>
<p dir="auto">You could then use Find and Replace to change the size of the label for many hundreds of placemarks.</p>
</blockquote>
<p dir="auto">I’m thinking about an <strong>second</strong> solution !</p>
<hr />
<p dir="auto">For example, from this <em>INPUT</em> text, part of your <strong><code>KLM</code></strong> file :</p>
<pre><code class="language-xml">...
...
&lt;LabelStyle&gt;
&lt;scale&gt;0.9&lt;/scale&gt;
&lt;/LabelStyle&gt;
...
...
...
    &lt;LabelStyle&gt;
        &lt;scale&gt;37&lt;/scale&gt;
&lt;/LabelStyle&gt;
...
...
  &lt;LabelStyle&gt;
  &lt;scale&gt;100&lt;/scale&gt;
  &lt;/LabelStyle&gt;
...
...
</code></pre>
<p dir="auto">Using the <strong>regex</strong> S/R :</p>
<ul>
<li>
<p dir="auto">SEARCH <strong><code>^(\h*&lt;LabelStyle&gt;\R\h*&lt;scale&gt;)\d+(?:\.\d+)?(&lt;/scale&gt;\R\h*&lt;/LabelStyle&gt;\R)</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>${1}3.7${2}</code></strong></p>
</li>
</ul>
<p dir="auto">It would change the <strong>size</strong> of <strong>any</strong> label to the <strong><code>3.7 </code></strong> <strong>value</strong> and you’ll get the <strong>OUTPUT</strong> text, below :</p>
<pre><code class="language-xml">...
...
&lt;LabelStyle&gt;
&lt;scale&gt;3.7&lt;/scale&gt;
&lt;/LabelStyle&gt;
...
...
...
    &lt;LabelStyle&gt;
        &lt;scale&gt;3.7&lt;/scale&gt;
&lt;/LabelStyle&gt;
...
...
  &lt;LabelStyle&gt;
  &lt;scale&gt;3.7&lt;/scale&gt;
  &lt;/LabelStyle&gt;
...
...
</code></pre>
<hr />
<p dir="auto">Thus, although I miss something <strong>obvious</strong>, <strong>no</strong> need to get each <strong>block</strong> of <strong><code>3</code></strong> lines in a <strong>single</strong> line !</p>
<p dir="auto">In addition, like the <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a>’s regex, it does <strong>not</strong> mind about the kind of <strong><code>EOL</code></strong>, which can be, either a <strong>Windows</strong>, <strong>Unix</strong> or <strong>Mac</strong> line-break !</p>
<p dir="auto">Just place, in the <strong>replacement</strong> part, your <strong>desired</strong> number between the <strong>two</strong> values <strong><code>${1}</code></strong> and <strong><code>${2}</code></strong>. For instance :</p>
<ul>
<li>
<p dir="auto"><strong><code>${1}100${2}</code></strong></p>
</li>
<li>
<p dir="auto"><strong><code>${1}0.05${2}</code></strong></p>
</li>
<li>
<p dir="auto"><strong><code>${1}0${2}</code></strong></p>
</li>
<li>
<p dir="auto"><strong><code>${1}12.3456{2}</code></strong></p>
</li>
</ul>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/95229</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/95229</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 05 Jun 2024 13:17:31 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to merge two lines in a KML file ? on Wed, 05 Jun 2024 12:24:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/josef-moertl" aria-label="Profile: Josef-Moertl">@<bdi>Josef-Moertl</bdi></a> said in <a href="/post/95225">Is it possible to merge two lines in a KML file ?</a>:</p>
<blockquote>
<p dir="auto">Alan you are a genius</p>
</blockquote>
<p dir="auto">Well.  Ahem.  Credit for the base formula goes to its author; see the link I provided.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/95226</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/95226</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 05 Jun 2024 12:24:50 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to merge two lines in a KML file ? on Wed, 05 Jun 2024 11:13:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a></p>
<p dir="auto">Unbelievable … I’m sitting here at my desk and shaking my head … I still can’t believe it …  Alan you are a genius !!! … the formula looks soooo complicated … but … it worked exactly as I wanted it to</p>
<p dir="auto">Alan thanks a lot  !!!<br />
This is something I will never forget<br />
Thank you !!!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/95225</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/95225</guid><dc:creator><![CDATA[Josef Moertl]]></dc:creator><pubDate>Wed, 05 Jun 2024 11:13:37 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to merge two lines in a KML file ? on Wed, 05 Jun 2024 10:09:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/josef-moertl" aria-label="Profile: Josef-Moertl">@<bdi>Josef-Moertl</bdi></a> said in <a href="/post/95219">Is it possible to merge two lines in a KML file ?</a>:</p>
<blockquote>
<p dir="auto">or even like this ?</p>
<p dir="auto">&lt;LabelStyle&gt;&lt;scale&gt;0.9&lt;/scale&gt;&lt;/LabelStyle&gt;</p>
</blockquote>
<p dir="auto">Try:</p>
<p dir="auto">Find: <code>(?-si:&lt;LabelStyle&gt;|(?!\A)\G)(?s-i:(?!&lt;/LabelStyle&gt;).)*?\K(?-si:\R)</code><br />
Replace: make sure this box is empty<br />
Search mode: Regular expression</p>
<p dir="auto">It’s an application of a technique discussed <a href="https://community.notepad-plus-plus.org/topic/22690">HERE</a>.  It’s a bit of an advanced thing for your problem, but it works.</p>
<p dir="auto">However, I’m concerned that you may not have stated your problem correctly–we shall see…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/95224</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/95224</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 05 Jun 2024 10:09:13 GMT</pubDate></item></channel></rss>