<?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[add new text in multiple files]]></title><description><![CDATA[<p dir="auto">(include “/properties/car.ext”)<br />
(include “/properties/shadow/tank.inc”  scale(1.0))<br />
(include “/properties/selection/vehicle.inc”  scale(1.1))<br />
{collider “truck”}<br />
{props “vehicle” “car” “truck” “wheeled” “vision_vehicle_medium”}<br />
(“armor_medium” args 1.0)</p>
<p dir="auto">(“crew_2_human”)</p>
<p dir="auto">to</p>
<p dir="auto">(include “/properties/car.ext”)<br />
(include “car_crew.inc”)     &lt;----- how do I insert this line in multiple files with replace all<br />
(include “/properties/shadow/tank.inc”  scale(1.0))<br />
(include “/properties/selection/vehicle.inc”  scale(1.1))<br />
{collider “truck”}<br />
{props “vehicle” “car” “truck” “wheeled” “vision_vehicle_medium”}<br />
(“armor_medium” args 1.0)</p>
<p dir="auto">(“crew_2_human”)</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/15864/add-new-text-in-multiple-files</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Apr 2026 09:28:48 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/15864.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 02 Jun 2018 20:13:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to add new text in multiple files on Mon, 04 Jun 2018 06:28:56 GMT]]></title><description><![CDATA[<p dir="auto">it works ….thank you so much…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32767</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32767</guid><dc:creator><![CDATA[rajesh patil]]></dc:creator><pubDate>Mon, 04 Jun 2018 06:28:56 GMT</pubDate></item><item><title><![CDATA[Reply to add new text in multiple files on Sun, 03 Jun 2018 12:29:05 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/12229">@rajesh-patil</a> and <strong>All</strong>,</p>
<p dir="auto">OK, I understand ! I <strong>wrongly</strong> supposed that your text <strong>began</strong> the line, physically. But, of course, most of the time, your text is <strong>indented</strong> !</p>
<p dir="auto">In that case change, <strong>both</strong>, the search <strong><code>AND</code></strong> the replacement part with the regexes below :</p>
<p dir="auto">SEARCH : <strong><code>(?-is)^((\h+)\(include "/properties/car.ext"\)\R)(?s)(.+)</code></strong></p>
<p dir="auto">REPLACE : <strong><code>\1\2\(include "car_crew.inc"\)\r\n\3</code></strong></p>
<p dir="auto">Everything should be <strong>OK</strong> :-))</p>
<hr />
<p dir="auto"><strong>Remark</strong> :</p>
<p dir="auto">IF your text contains <strong>several</strong> lines <strong><code>(include "/properties/car.ext")</code></strong>, in files, be <strong>aware</strong> that the regex S/R, above, adds the line <strong><code>(include "car_crew.inc")</code></strong>, <strong>only after</strong> the <strong>FIRST</strong> occurrence of <strong><code>(include "/properties/car.ext")</code></strong> !</p>
<p dir="auto">If all is <strong>OK</strong>, I could, next time, give you some <strong>explanations</strong> on these regexes !</p>
<hr />
<p dir="auto">To get further <strong>information</strong>, you should have a look about the <strong>FAQ Desk</strong> post, below :</p>
<p dir="auto"><a href="https://notepad-plus-plus.org/community/topic/15765/faq-desk-where-to-find-regex-documentation/1" rel="nofollow ugc">https://notepad-plus-plus.org/community/topic/15765/faq-desk-where-to-find-regex-documentation/1</a></p>
<p dir="auto">See you later</p>
<p dir="auto">Best Regards</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32745</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32745</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 03 Jun 2018 12:29:05 GMT</pubDate></item><item><title><![CDATA[Reply to add new text in multiple files on Sun, 03 Jun 2018 03:58:28 GMT]]></title><description><![CDATA[<p dir="auto">hi,<br />
thanks for helping me…its works…but its works with only with first line…in my case</p>
<p dir="auto">{game_entity<br />
(include “/properties/car.ext”)<br />
(include “/properties/shadow/tank.inc”  scale(0.9))<br />
(include “/properties/selection/vehicle.inc”  scale(1.1))<br />
{mass 1380}</p>
<hr />
<p dir="auto">(?-is)^((include “/properties/car.ext”)\R)(?s)(.+),<br />
\1(include “car_crew.inc”)\r\n\2,</p>
<p dir="auto">not works</p>
<hr />
<p dir="auto">(?-is)^({game_entity\R)(?s)(.+)<br />
\1(include “car_crew.inc”)\r\n\2,</p>
<p dir="auto">works</p>
<hr />
<p dir="auto">is it possible insert text between any line ?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32734</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32734</guid><dc:creator><![CDATA[rajesh patil]]></dc:creator><pubDate>Sun, 03 Jun 2018 03:58:28 GMT</pubDate></item><item><title><![CDATA[Reply to add new text in multiple files on Sat, 02 Jun 2018 23:49:58 GMT]]></title><description><![CDATA[<p dir="auto">[link text]<a href="https://www.dropbox.com/s/9nttlapfrk7jrmx/notpad%2B%2B.jpg?dl=0" rel="nofollow ugc">https://www.dropbox.com/s/9nttlapfrk7jrmx/notpad%2B%2B.jpg?dl=0</a>(link url)</p>
<p dir="auto">0 occurrences where replaced…plz check pic</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32732</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32732</guid><dc:creator><![CDATA[rajesh patil]]></dc:creator><pubDate>Sat, 02 Jun 2018 23:49:58 GMT</pubDate></item><item><title><![CDATA[Reply to add new text in multiple files on Sat, 02 Jun 2018 23:07:47 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/12229">@rajesh-patil</a> and <strong>All</strong>,</p>
<p dir="auto">Ok ! So, in other words, if you don’t mind about the <strong>location</strong>, among the <strong>four</strong> possible ones, that you proposed, we could simply tell that you need to insert the line <strong><code>(include "car_crew.inc")</code></strong>, <strong>after</strong> the line <strong><code>(include "/properties/car.ext")</code></strong> which <strong>always</strong> begins <strong>every</strong> file, which are to be scanned.</p>
<p dir="auto">If so :</p>
<ul>
<li>
<p dir="auto">First, I <strong>strongly</strong> advice you to <strong>backup</strong> your original files, <strong>before</strong> any operation !</p>
</li>
<li>
<p dir="auto">Then, open the <strong>Find in Files</strong> dialog ( <strong><code>Ctrl + Shift + F</code></strong> )</p>
</li>
<li>
<p dir="auto">Type the regex <strong><code>(?-is)^(\(include "/properties/car.ext"\)\R)(?s)(.+)</code></strong>, in the <strong>Find what:</strong> zone</p>
</li>
<li>
<p dir="auto">Type the regex <strong><code>\1\(include "car_crew.inc"\)\r\n\2</code></strong>, in the <strong>Replace with:</strong> zone</p>
</li>
<li>
<p dir="auto">Fill the <strong>two</strong> other fields <strong>Filters</strong> and <strong>Directory:</strong>, as you like</p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong> search <strong>mode</strong></p>
</li>
<li>
<p dir="auto">Click on the <strong><code>Replace in files</code></strong> button and <strong>confirm</strong> the changes</p>
</li>
</ul>
<p dir="auto">Et voilà !</p>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32731</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32731</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 02 Jun 2018 23:07:47 GMT</pubDate></item><item><title><![CDATA[Reply to add new text in multiple files on Sat, 02 Jun 2018 22:16:14 GMT]]></title><description><![CDATA[<p dir="auto">(include “/properties/car.ext”)<br />
(include “/properties/shadow/tank.inc” scale(1.0))<br />
(include “/properties/selection/vehicle.inc” scale(1.1))<br />
{collider “truck”}</p>
<p dir="auto">this top line are same in every file</p>
<p dir="auto">(include “/properties/car.ext”)</p>
<p dir="auto">(include “car_crew.inc”) &lt;-----can inserted here</p>
<p dir="auto">(include “/properties/shadow/tank.inc” scale(1.0))<br />
&lt;------------ or inserted here<br />
(include “/properties/selection/vehicle.inc” scale(1.1))<br />
&lt;-------------  or inserted here<br />
{collider “truck”}<br />
&lt;------------- or inserted here</p>
<p dir="auto">all I want insert this single line (include “car_crew.inc”)  in all file at once</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32728</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32728</guid><dc:creator><![CDATA[rajesh patil]]></dc:creator><pubDate>Sat, 02 Jun 2018 22:16:14 GMT</pubDate></item><item><title><![CDATA[Reply to add new text in multiple files on Sat, 02 Jun 2018 21:49:32 GMT]]></title><description><![CDATA[<p dir="auto">Hi,  <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/12229">@rajesh-patil</a>,</p>
<p dir="auto">Regarding the <strong>limited</strong> time of editing, it’s due to some <strong>spam attacks</strong> we had in the past, on this site. I agree with you and many others users that this delay should be <strong>highly increased</strong> for a nicer work. By now, only <strong>moderators</strong> of this site may re-open and change their <strong>own</strong> posts, <strong>without any</strong> limit !</p>
<hr />
<p dir="auto">Regarding your problem, I didn’t clearly understand and I’m rather <strong>confused</strong> ! We must find some parameter(s) which identify, without ambiguity, the location where this line have to be <strong>inserted</strong>. For example :</p>
<ul>
<li>
<p dir="auto">Is it always after line <strong><code>7</code></strong>, or any other, of <strong>each</strong> file ?</p>
</li>
<li>
<p dir="auto">Or, as you said, must this line be inserted between <strong>two</strong> lines, which are <strong>always</strong> the same, <strong>whatever</strong> the file to scan ?</p>
</li>
<li>
<p dir="auto">Or ?</p>
</li>
</ul>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32726</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32726</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 02 Jun 2018 21:49:32 GMT</pubDate></item><item><title><![CDATA[Reply to add new text in multiple files on Sat, 02 Jun 2018 21:12:32 GMT]]></title><description><![CDATA[<p dir="auto">not exactly same top lines same bottom property are change…………….</p>
<p dir="auto">I cant edit my post…waiting time 2100…what is this ?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32724</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32724</guid><dc:creator><![CDATA[rajesh patil]]></dc:creator><pubDate>Sat, 02 Jun 2018 21:12:32 GMT</pubDate></item><item><title><![CDATA[Reply to add new text in multiple files on Sat, 02 Jun 2018 20:48:23 GMT]]></title><description><![CDATA[<p dir="auto">•Does the new line (include “car_crew.inc”) need to be inserted once or several times in each file ?<br />
yes<br />
•Is this line be inserted always at the same location ? ( I mean, for instance, always between the present lines 7 and 8 ! )<br />
yes<br />
•Will the lines (include “/properties/car.ext”) and (include “/properties/shadow/tank.inc” scale(1.0)) always surround this new line ?<br />
yes</p>
<p dir="auto">all files are same…just want to insert (include “car_crew.inc”)  in every file…there are too many files it will take me forever</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32721</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32721</guid><dc:creator><![CDATA[rajesh patil]]></dc:creator><pubDate>Sat, 02 Jun 2018 20:48:23 GMT</pubDate></item><item><title><![CDATA[Reply to add new text in multiple files on Sat, 02 Jun 2018 20:43:33 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/12229">@rajesh-patil</a> ,</p>
<p dir="auto">Some precisions :</p>
<ul>
<li>
<p dir="auto">Does the <strong>new</strong> line <strong><code>(include "car_crew.inc")</code></strong> need to be inserted <strong>once</strong> or <strong>several</strong> times in <strong>each</strong> file ?</p>
</li>
<li>
<p dir="auto">Is this line be inserted <strong>always</strong> at the <strong>same</strong> location ? ( I mean, for instance, <strong>always</strong> between the present lines <strong><code>7</code></strong> and <strong><code>8</code></strong> ! )</p>
</li>
<li>
<p dir="auto">Will the lines <strong><code>(include "/properties/car.ext")</code></strong> and <strong><code>(include "/properties/shadow/tank.inc" scale(1.0))</code></strong> always surround this <strong>new</strong> line ?</p>
</li>
</ul>
<p dir="auto">See you later,</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32720</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32720</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 02 Jun 2018 20:43:33 GMT</pubDate></item></channel></rss>