Ein numerisches Wörterbuch in Notepad ++ erstellen?

429
ShopiMacros

Ich möchte ein numerisches Wörterbuch in notepad ++ erstellen .
Von 1bis 100000.
Wie bei Zeilen:

1 || 1 2 || 2 3 || 3 

Ich habe versucht, Loops zu verwenden.
Vielleicht gibt es einen Code wie: {}. Welche wir während loops benutzen können.
Hilfe bitte.
Wenn Sie weitere Informationen wünschen, können Sie dies gerne kommentieren.

0
Verwenden Sie dazu NppScripts? Nifle vor 6 Jahren 0
@Nifle Yeah .... ShopiMacros vor 6 Jahren 0

1 Antwort auf die Frage

3
Confuzing

Don't know if you need to use NppScripts for this, but if you simply want to create a text file in the format you listed you could use simple cmd line code.

(for /L %n in (1,1,100000) DO @ECHO %n ^|^| %n) > Output.txt

You can copy and paste this into a command prompt and it will create a text file named Output.txt with lines 1 || 1 to 100000 || 100000 in the current directory (can take a few seconds to run).

Du bist ein Genie. ShopiMacros vor 6 Jahren 0
Die Verwendung macht es sehr langsam, aber es ist okay. ShopiMacros vor 6 Jahren 0
Hat es funktioniert in NppScripts, wenn Sie interessiert sind, hat ein paar kleinere Macken. Confuzing vor 6 Jahren 0