New answers tagged

0 votes

How to merge lines every 10 rows in Notepad++?

Ctrl+H Find what: (^[^,]+,)\R((?1))\R((?1))\R((?1))\R((?1))\R((?1))\R((?1))\R((?1))\R((?1))\R((?1)) Replace with: $1$2$3$4$5$6$7$8$9${10} TICK Wrap around SELECT Regular expression Replace all Demo &...
  • 16.4k
0 votes

Which Notepad++ plugin sets the text's background color to orange?

You can find it empirically : Disable half of the plugins and restart Notepad++ If the highlight disappears, or not, this will reduce the candidates to half Continue disabling half of the remaining ...
  • 436k
0 votes

Extracting Domains from URL in EmEditor or NotePad++

Lets say you have your URL list or some more lines in a text file line by line sub1.domain1.com sub22.domain2.com sub333.domain3.com Ragnit Lengwethen Rautenberg you'd go through following steps ...
  • 1,667
2 votes

PDF editing in Notepad++

You can get the "Diff" of the Original Document & the new Document. That will show your Intentional Changes + the UnIntentional Changes by your Editor. Your Editor might having various ...
  • 1,217
1 vote

How do I extract domains from email list in EmEditor or Notepad++

Ctrl+H Find what: ^.+@ Replace with: LEAVE EMPTY TICK Wrap around SELECT Regular expression UNTICK . matches newline Replace all Explanation: ^ # beginning of line .+ # 1 or more ...
  • 16.4k
0 votes

How do I extract domains from email list in EmEditor or Notepad++

I'm going to assume you meant to show each email on its own line, like so: Sample Email list email1@domain1.com email2@domain2.com email3@domain3.com If this isn't what your list looks like, it's ...
1 vote
Accepted

Select from bookmark to bookmark

To select from bookmark to bookmark, Navigate to the first bookmark Select Edit...Begin/End Select Navigate to the next bookmark Select Edit...Begin/End Select The text in between the bookmarks ...
  • 26
4 votes
Accepted

How does Notepad++ understands "last used directory" term?

This is a known issue with Notepad++. It was previously resolved but it seems to be a problem once again as shown in these threads from Notepad++ community forum and Github respectively: Notepad++ ...
0 votes

How to find 2 consecutive words, but counting only the shortest string

REGEX This regex searches for a string that matches the last instance of the word cat followed by any number of characters that end with the word dog \bcat\b(?!.+\bcat\b).+?\bdog\b Token Notes (?!......
  • 1,925
1 vote
Accepted

How to copy and paste columns Notepad++?

This can be done by using the text replacement dialog (Ctrl+H). Find what: :(\d*) (.*) Replace with: \2:\1 Check: "Regular expression" Click "Replace All". Explanation: (\d*) : ...
  • 436k
0 votes

Remove a line containing a word and the previous line

Do this replacement in Notepad++. Find what : <DIV.*?JARDINAGEM.*?</DIV>\r\n Replace with : (nothing - leave blank) Check : "Regular expression" and ". matches newline" ...
  • 436k
0 votes

File permissions changing after editing with Notepad++ on Windows 11?

DUH I found it out after some additional troubleshooting: While the encoding I needed was UTF-8 with BOM, it got changed to just UTF-8 when saving it with Notepad++. Now it works!
0 votes

How to highlight something in one text so that it's highlighted in all other opened texts (Notepad++)?

I am going to assume by "texts" you mean other tabs. I am going to assume by "highlighting" you mean bookmark. The answer to the question is then; no. If you look in the 'Mark' tab ...
0 votes

Preserve unsaved files when Sublime Text 3 application is closed

instead of clicking on red close button, right click on dock and quit the application. It will preserve the unsaved files
0 votes

Regex: Delete the contents of all files that start, the first line, with the word ETICHETE:

Ctrl+H Find what: (^\AEticheta:)([\s\S]+) Replace with: LEAVE EMPTY CHECK Wrap around CHECK Regular expression UNCHECK . matches newline Replace all
  • 101
2 votes

Behavior of return/enter key

The ‘default’ rule is to look at the existing file and continue to use whatever EOL character it finds. Per Toto’s answer, you can set the EOL conversion (and therefore the EOL character that will be ...
  • 4,336
3 votes
Accepted

Notepad++ move first two characters to end of line

Ctrl+H Find what: ^(.+):(.+)$ Replace with: $2:$1 TICK Wrap around SELECT Regular expression UNTICK . matches newline Replace all Explanation: ^ # beginning of line (.+) # group 1, 1 ...
  • 16.4k
5 votes

Behavior of return/enter key

It depends where your files come from. End of line is \n for Unix/Linux files \r\n for Windows files \r for old Mac files Thanks to David Postill, If you want to modify EOL in the open files: Menu ...
  • 16.4k
0 votes

Why is Notepad++ so slow when dealing with files stored on a network share?

If tab switching is still very slow despite having disabled "File Status Auto-Detection", check whether you have the plugin EditorConfig. Removing that extension solved the problem for me. ...
  • 2,373
1 vote

Is it possible to dump the names of all the open files in notepad++ to a file?

From "Document List" panel, select wanted files (use CTRL to add more than one), right button, chose names or paths, paste it where ever you want.
2 votes
Accepted

Invert order of lines by the pair

You'd go through following steps: Ctrl+H Find what: (.+)\r\n(.+) Replace with: $2\r\n$1 Search mode: Regular expression Click on Replace All (at your own risk) Please note - MacOS, by default, ...
  • 1,667

Top 50 recent answers are included