<?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[how to put numbers every two rows?]]></title><description><![CDATA[<p dir="auto">i have this,</p>
<pre><code>        break;
        case("3"):
        thisLayer.font = font;
        break;
        case("4"):
        thisLayer.font = font;
        break;
        case("5"):
        thisLayer.font = font;
        break;
        case("6"):
        thisLayer.font = font;
        break;
        case("7"):
        thisLayer.font = font;
        break;
        case("8"):
        thisLayer.font = font;
        break;
        case("9"):
        thisLayer.font = font;
        break;
        case("10"):
        thisLayer.font = font;
</code></pre>
<p dir="auto">Should be like this</p>
<pre><code>        break;
        case("3"):
        thisLayer.font = font3;
        break;
        case("4"):
        thisLayer.font = font4;
        break;
        case("5"):
        thisLayer.font = font5;
        break;
        case("6"):
        thisLayer.font = font6;
        break;
        case("7"):
        thisLayer.font = font7;
        break;
        case("8"):
        thisLayer.font = font8;
        break;
        case("9"):
        thisLayer.font = font9;
        break;
        case("10"):
        thisLayer.font = font10;
</code></pre>
<p dir="auto">Also</p>
<p dir="auto">i have this</p>
<pre><code>					"label" : "1",
					"value" : "1"
				},
				{
					"label" : "2",
					"value" : "2"
				},
				{
					"label" : "3",
					"value" : "3"
				},
				{
					"label" : "4",
					"value" : "4"
				},
				{
					"label" : "5",
					"value" : "5"
</code></pre>
<p dir="auto">but it must be up to 708. I can copy text up to 708, but i have to change numbers from 1 to 708 manually -_-.</p>
<p dir="auto">i found this theme, but this command doesn’t works “(?&lt;=\w)\R” with my first problem. What to do with the second problem, i have no idea.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20748/how-to-put-numbers-every-two-rows</link><generator>RSS for Node</generator><lastBuildDate>Sat, 08 Aug 2026 10:36:13 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20748.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 16 Feb 2021 11:05:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to how to put numbers every two rows? on Wed, 17 Feb 2021 13:21:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wonkawilly" aria-label="Profile: wonkawilly">@<bdi>wonkawilly</bdi></a> said in <a href="/post/62992">how to put numbers every two rows?</a>:</p>
<blockquote>
<p dir="auto">there is a little error in the row</p>
</blockquote>
<p dir="auto">It’s OK.  BTW I didn’t go step by step through to check for accuracy.<br />
It’s enough that you very clearly showed the technique, enough to get someone started down that same path.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/62993</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/62993</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 17 Feb 2021 13:21:54 GMT</pubDate></item><item><title><![CDATA[Reply to how to put numbers every two rows? on Wed, 17 Feb 2021 13:15:22 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> In my post there is a little error in the row:</p>
<pre><code>{"label" : "n","value" : "n"	},
</code></pre>
<p dir="auto">the following is the right one</p>
<pre><code>{"label" : "","value" : ""	},
</code></pre>
<p dir="auto"><strong>Explication:</strong><br />
Remove the n before duplicating the row. Sorry I couldn’t correct in time directly into the original post because I had just 180 seconds to make corrections but I hadn’t enough time. Sorry again</p>
]]></description><link>https://community.notepad-plus-plus.org/post/62992</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/62992</guid><dc:creator><![CDATA[wonkawilly]]></dc:creator><pubDate>Wed, 17 Feb 2021 13:15:22 GMT</pubDate></item><item><title><![CDATA[Reply to how to put numbers every two rows? on Wed, 17 Feb 2021 13:10:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wonkawilly" aria-label="Profile: wonkawilly">@<bdi>wonkawilly</bdi></a></p>
<p dir="auto">Nice posting.<br />
That’s the kind of thing I had in mind earlier, but I didn’t elaborate all the details like you did because the OP indicated he already had a solution that worked.<br />
Thank you for filling in the gap I left open.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/62991</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/62991</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 17 Feb 2021 13:10:32 GMT</pubDate></item><item><title><![CDATA[Reply to how to put numbers every two rows? on Wed, 17 Feb 2021 13:07:29 GMT]]></title><description><![CDATA[<p dir="auto">There is another easy solution without scripting: first you have to join the rows like this:</p>
<pre><code>{"label" : "1","value" : "1"	},
{"label" : "2","value" : "2"	},
{"label" : "3","value" : "3"	},
</code></pre>
<p dir="auto">or even better just create a line like this</p>
<pre><code>{"label" : "n","value" : "n"	},
</code></pre>
<p dir="auto">and than duplicate it as many times as you need</p>
<pre><code>{"label" : "","value" : ""	},
{"label" : "","value" : ""	},
{"label" : "","value" : ""	},
{"label" : "","value" : ""	},
{"label" : "","value" : ""	},
{"label" : "","value" : ""	},
</code></pre>
<p dir="auto">Than use the column editor that you will find in Edit menu, to add numbers as you want after label and after value.</p>
<pre><code>{"label" : "1","value" : "1"	},
{"label" : "2","value" : "2"	},
{"label" : "3","value" : "3"	},
{"label" : "4","value" : "4"	},
{"label" : "5","value" : "5"	},
{"label" : "6","value" : "6"	},
...
</code></pre>
<p dir="auto">Maybe you can even find a plugin to format back the whole code with new lines and indentations with just two clicks : I think JSTool will make the trick.</p>
<p dir="auto">Or alternatively you can use find and replace to put back the new lines and the indentations.<br />
Both ways will work.</p>
<p dir="auto">You can operate with both codes more or less the same way :</p>
<pre><code>case("1  "):         thisLayer.font = font1  ;         break;
case("2  "):         thisLayer.font = font2  ;         break;
case("3  "):         thisLayer.font = font3  ;         break;
case("4  "):         thisLayer.font = font4  ;         break;
case("5  "):         thisLayer.font = font5  ;         break;
case("6  "):         thisLayer.font = font6  ;         break;
case("7  "):         thisLayer.font = font7  ;         break;
case("8  "):         thisLayer.font = font8  ;         break;
case("9  "):         thisLayer.font = font9  ;         break;
case("10 "):         thisLayer.font = font10 ;         break;
case("11 "):         thisLayer.font = font11 ;         break;
case("12 "):         thisLayer.font = font12 ;         break;
case("13 "):         thisLayer.font = font13 ;         break;
case("14 "):         thisLayer.font = font14 ;         break;
case("15 "):         thisLayer.font = font15 ;         break;
case("16 "):         thisLayer.font = font16 ;         break;
case("17 "):         thisLayer.font = font17 ;         break;
case("18 "):         thisLayer.font = font18 ;         break;
case("19 "):         thisLayer.font = font19 ;         break;
case("20 "):         thisLayer.font = font20 ;         break;
case("21 "):         thisLayer.font = font21 ;         break;
case("22 "):         thisLayer.font = font22 ;         break;
case("23 "):         thisLayer.font = font23 ;         break;
case("24 "):         thisLayer.font = font24 ;         break;
case("25 "):         thisLayer.font = font25 ;         break;
case("26 "):         thisLayer.font = font26 ;         break;
case("27 "):         thisLayer.font = font27 ;         break;
case("28 "):         thisLayer.font = font28 ;         break;
case("29 "):         thisLayer.font = font29 ;         break;
case("30 "):         thisLayer.font = font30 ;         break;
case("31 "):         thisLayer.font = font31 ;         break;
case("32 "):         thisLayer.font = font32 ;         break;
case("33 "):         thisLayer.font = font33 ;         break;
case("34 "):         thisLayer.font = font34 ;         break;
case("35 "):         thisLayer.font = font35 ;         break;
case("36 "):         thisLayer.font = font36 ;         break;
case("37 "):         thisLayer.font = font37 ;         break;
case("38 "):         thisLayer.font = font38 ;         break;
case("39 "):         thisLayer.font = font39 ;         break;
case("40 "):         thisLayer.font = font40 ;         break;
case("41 "):         thisLayer.font = font41 ;         break;
case("42 "):         thisLayer.font = font42 ;         break;
case("43 "):         thisLayer.font = font43 ;         break;
</code></pre>
<p dir="auto">with find and replace you can remove the space after the numbers:</p>
<pre><code>case("1"):         thisLayer.font = font1  ;         break;
case("2"):         thisLayer.font = font2  ;         break;
case("3"):         thisLayer.font = font3  ;         break;
case("4"):         thisLayer.font = font4  ;         break;
case("5"):         thisLayer.font = font5  ;         break;
case("6"):         thisLayer.font = font6  ;         break;
case("7"):         thisLayer.font = font7  ;         break;
case("8"):         thisLayer.font = font8  ;         break;
case("9"):         thisLayer.font = font9  ;         break;
case("10"):         thisLayer.font = font10 ;         break;
case("11"):         thisLayer.font = font11 ;         break;
case("12"):         thisLayer.font = font12 ;         break;
case("13"):         thisLayer.font = font13 ;         break;
case("14"):         thisLayer.font = font14 ;         break;
case("15"):         thisLayer.font = font15 ;         break;
case("16"):         thisLayer.font = font16 ;         break;
case("17"):         thisLayer.font = font17 ;         break;
case("18"):         thisLayer.font = font18 ;         break;
case("19"):         thisLayer.font = font19 ;         break;
case("20"):         thisLayer.font = font20 ;         break;
case("21"):         thisLayer.font = font21 ;         break;
case("22"):         thisLayer.font = font22 ;         break;
case("23"):         thisLayer.font = font23 ;         break;
case("24"):         thisLayer.font = font24 ;         break;
case("25"):         thisLayer.font = font25 ;         break;
case("26"):         thisLayer.font = font26 ;         break;
case("27"):         thisLayer.font = font27 ;         break;
case("28"):         thisLayer.font = font28 ;         break;
case("29"):         thisLayer.font = font29 ;         break;
case("30"):         thisLayer.font = font30 ;         break;
case("31"):         thisLayer.font = font31 ;         break;
case("32"):         thisLayer.font = font32 ;         break;
case("33"):         thisLayer.font = font33 ;         break;
case("34"):         thisLayer.font = font34 ;         break;
case("35"):         thisLayer.font = font35 ;         break;
case("36"):         thisLayer.font = font36 ;         break;
case("37"):         thisLayer.font = font37 ;         break;
case("38"):         thisLayer.font = font38 ;         break;
case("39"):         thisLayer.font = font39 ;         break;

</code></pre>
<p dir="auto">Then you can format back the text with Plugins &gt; JSTools &gt; JSFormat</p>
<pre><code>{
	"label": "789",
	"value": "789"
},
{
	"label": "790",
	"value": "790"
},
{
	"label": "791",
	"value": "791"
},
{
	"label": "792",
	"value": "792"
},

case ("1"):
	thisLayer.font = font1;
	break;
case ("2"):
	thisLayer.font = font2;
	break;
case ("3"):
	thisLayer.font = font3;
	break;
case ("4"):
	thisLayer.font = font4;
	break;
case ("5"):
	thisLayer.font = font5;
	break;
case ("6"):
	thisLayer.font = font6;
	break;
case ("7"):
	thisLayer.font = font7;
	break;
case ("8"):
	thisLayer.font = font8;
	break;
case ("9"):
	thisLayer.font = font9;
	break;
case ("10"):
	thisLayer.font = font10;
	break;
</code></pre>
<p dir="auto">You will get it done in about 30 seconds of job, but remember to recheck the code for mistakes in case you will correct them doing the procedure again or directly by hands. But I don’t think it will be necessary much more hand corrections.</p>
<p dir="auto">Enjoy</p>
]]></description><link>https://community.notepad-plus-plus.org/post/62990</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/62990</guid><dc:creator><![CDATA[wonkawilly]]></dc:creator><pubDate>Wed, 17 Feb 2021 13:07:29 GMT</pubDate></item><item><title><![CDATA[Reply to how to put numbers every two rows? on Tue, 16 Feb 2021 15:15:26 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/dimakserpg" aria-label="Profile: DimakSerpg">@<bdi>DimakSerpg</bdi></a>, All</p>
<p dir="auto">If the problems you posted here are common in your daily workload, then I would suggest you to learn scripting.</p>
<p dir="auto">Just for the record, the script I spoke about. This demo is in AutoHotkey, but it could be scripted in several other languages. All the text is automatically created and the outcome is placed on the clipboard, ready to be pasted.</p>
<pre><code>Output  := ""
Num     := 3 ; replace "3" with the correct number -&gt; 708
Template = 
(join`n
				{
					"{}" : "{}",
					"{}" : "{}"
				},

)

Loop, % Num {
	Output .= Format("`t`t`t`t" Template, "label", A_Index, "value", A_Index)
}

MsgBox, % Clipboard := Output
return
</code></pre>
<p dir="auto">Output:</p>
<pre><code>			{
				"label" : "1",
				"value" : "1"
			},
			{
				"label" : "2",
				"value" : "2"
			},
			{
				"label" : "3",
				"value" : "3"
			},
</code></pre>
<p dir="auto">I hope this simple example will encourage you to learn scripting.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/62960</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/62960</guid><dc:creator><![CDATA[astrosofista]]></dc:creator><pubDate>Tue, 16 Feb 2021 15:15:26 GMT</pubDate></item><item><title><![CDATA[Reply to how to put numbers every two rows? on Tue, 16 Feb 2021 14:46:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dimakserpg" aria-label="Profile: DimakSerpg">@<bdi>DimakSerpg</bdi></a></p>
<p dir="auto">So my method would have been to generate the number list in an empty file, e.g. :</p>
<pre><code>1
2
3
4
5
etc
708
</code></pre>
<p dir="auto">and then use regex replacement to build the extra text around that.</p>
<p dir="auto">but…it seems that you got where you needed to go…so that’s good!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/62953</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/62953</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 16 Feb 2021 14:46:21 GMT</pubDate></item><item><title><![CDATA[Reply to how to put numbers every two rows? on Tue, 16 Feb 2021 14:42:26 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> was your method easier or more difficult? :)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/62952</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/62952</guid><dc:creator><![CDATA[DimakSerpg]]></dc:creator><pubDate>Tue, 16 Feb 2021 14:42:26 GMT</pubDate></item><item><title><![CDATA[Reply to how to put numbers every two rows? on Tue, 16 Feb 2021 14:26:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dimakserpg" aria-label="Profile: DimakSerpg">@<bdi>DimakSerpg</bdi></a></p>
<blockquote>
<p dir="auto">Of course i can do something like this, but how to delete numbers between rows?</p>
</blockquote>
<p dir="auto">That wasn’t quite the approach I was thinking of with the column editor number insertion stuff.  :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/62948</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/62948</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 16 Feb 2021 14:26:02 GMT</pubDate></item><item><title><![CDATA[Reply to how to put numbers every two rows? on Tue, 16 Feb 2021 14:06:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/astrosofista" aria-label="Profile: astrosofista">@<bdi>astrosofista</bdi></a> oh nice, thank you man!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/62946</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/62946</guid><dc:creator><![CDATA[DimakSerpg]]></dc:creator><pubDate>Tue, 16 Feb 2021 14:06:39 GMT</pubDate></item><item><title><![CDATA[Reply to how to put numbers every two rows? on Tue, 16 Feb 2021 13:48:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dimakserpg" aria-label="Profile: DimakSerpg">@<bdi>DimakSerpg</bdi></a></p>
<p dir="auto">Good try! To delete the unwanted numbers, try this new regex</p>
<pre><code class="language-z">Search: (?-s)\{\K.*$|\},\K.*$
Replace: [leave empty]
</code></pre>
<p dir="auto">Put the caret at the very beginning of the document, select just the <code>Regular Expression mode</code> and click on <code>Replace All</code>.</p>
<p dir="auto">Have fun!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/62944</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/62944</guid><dc:creator><![CDATA[astrosofista]]></dc:creator><pubDate>Tue, 16 Feb 2021 13:48:17 GMT</pubDate></item><item><title><![CDATA[Reply to how to put numbers every two rows? on Tue, 16 Feb 2021 13:38:15 GMT]]></title><description><![CDATA[<p dir="auto">Of course i can do something like this, but how to delete numbers between rows?</p>
<pre><code>				{                  1
					"label" : "1",
					"value" : "1"
				},                 1
				{                  2
					"label" : "2",
					"value" : "2"
				},                 2
				{                  3
					"label" : "3",
					"value" : "3"
				},                 3
				{                  4
					"label" : "4",
					"value" : "4"
				},                 4
				{                  5
					"label" : "5",
					"value" : "5"
				},                 5
				{                  6
					"label" : "6",
					"value" : "6"
				},                 6
				{                  7
					"label" : "7",
					"value" : "7"
				},                 7
				{                  8
					"label" : "8",
					"value" : "8"
				},                 8
				{                  9
					"label" : "9",
					"value" : "9"
				},                 9
				{                  10
					"label" : "10",
					"value" : "10"
				},                 10
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/62942</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/62942</guid><dc:creator><![CDATA[DimakSerpg]]></dc:creator><pubDate>Tue, 16 Feb 2021 13:38:15 GMT</pubDate></item><item><title><![CDATA[Reply to how to put numbers every two rows? on Tue, 16 Feb 2021 13:18:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/astrosofista" aria-label="Profile: astrosofista">@<bdi>astrosofista</bdi></a> i have zero knowledge in scripting :)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/62940</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/62940</guid><dc:creator><![CDATA[DimakSerpg]]></dc:creator><pubDate>Tue, 16 Feb 2021 13:18:05 GMT</pubDate></item><item><title><![CDATA[Reply to how to put numbers every two rows? on Tue, 16 Feb 2021 13:16:02 GMT]]></title><description><![CDATA[<p dir="auto">It worked, thanks</p>
]]></description><link>https://community.notepad-plus-plus.org/post/62939</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/62939</guid><dc:creator><![CDATA[DimakSerpg]]></dc:creator><pubDate>Tue, 16 Feb 2021 13:16:02 GMT</pubDate></item><item><title><![CDATA[Reply to how to put numbers every two rows? on Tue, 16 Feb 2021 13:14:06 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/dimakserpg" aria-label="Profile: DimakSerpg">@<bdi>DimakSerpg</bdi></a></p>
<p dir="auto">Concerning your first issue, I would resolve it by means of the following regex:</p>
<pre><code class="language-z">Search: (?&lt;=case\(")(\d+)("\):\R[^;]+)\K
Replace: $0$1
</code></pre>
<p dir="auto">Put the caret at the very beginning of the document, select just the <code>Regular Expression mode</code> and click on <code>Replace All</code>.</p>
<p dir="auto">Take care and have fun!</p>
<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> beat me, even quite similar regex :)</p>
<p dir="auto">PS: Concerning the second issue, though there are ways to accomplish this within Notepad++, I would prefer to script it. It’s very easy.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/62938</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/62938</guid><dc:creator><![CDATA[astrosofista]]></dc:creator><pubDate>Tue, 16 Feb 2021 13:14:06 GMT</pubDate></item><item><title><![CDATA[Reply to how to put numbers every two rows? on Tue, 16 Feb 2021 13:08:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dimakserpg" aria-label="Profile: DimakSerpg">@<bdi>DimakSerpg</bdi></a></p>
<p dir="auto">You might try this for the first problem:</p>
<p dir="auto">find: <code>case\("(\d+)"\):\R\h+thisLayer\.font\h=\hfont\K</code><br />
repl: <code>${1}</code></p>
<blockquote>
<p dir="auto">What to do with the second problem, i have no idea.</p>
</blockquote>
<p dir="auto">To get you started, look into the <em>Column editor</em> feature; press Alt+c, and experiment with the <em>Number to Insert</em> part.  Then you can use some regex replacements to add in the other text around your numbers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/62937</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/62937</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 16 Feb 2021 13:08:26 GMT</pubDate></item></channel></rss>