Notepad++ Search Window disappeared

The issue seems happens if I change monitors configuration , e.g. if I worked on laptop with 2 attached monitors, and next time open Notepad++ when having single laptop monitor. For me it was sufficient to delete %appdata%\Notepad++\config.xml (not the whole folder). Close Notepad++ Open %appdata%\Notepad++ folder (e.g. C:\Users\{UserName}\AppData\Notepad++ ) Delete (or rename in case … Read more

Multiple word search and replace in Notepad++

Try a regular expression replace of (good)|(great)|(fine) with (?1bad)(?2worse)(?3not). The search looks for either of three alternatives separated by the |. Each alternative has ist own capture brackets. The replace uses the conditional form ?Ntrue-expression:false-expression where N is decimal digit, the clause checks whether capture expression N matches. Tested in Notepad++ 6.3 Update: You can … Read more

Searching multiple files for multiple words

If you are using Notepad++ editor (like the tag of the question suggests), you can use the great “Find in Files” functionality. Go to Search > Find in Files (Ctrl+Shift+F for the keyboard addicted) and enter: Find What = (test1|test2) Filters = *.txt Directory = enter the path of the directory you want to search … Read more

How do I group regular expressions past the 9th backreference?

You can simply reference groups > 9 in the same way as those < 10 i.e $10 is the tenth group. For (naive) example: String: abcdefghijklmnopqrstuvwxyz Regex find: (?:a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p) Replace: $10 Result: kqrstuvwxyz My test was performed in Notepad++ v6.1.2 and gave the result I expected. Update: This still works as of v7.5.6 SarcasticSully resurrected … Read more

How to write macro for Notepad++?

Macros in Notepad++ are just a bunch of encoded operations: you start recording, operate on the buffer, perhaps activating menus, stop recording then play the macro. After investigation, I found out they are saved in the file shortcuts.xml in the Macros section. For example, I have there: <Macro name=”Trim Trailing and save” Ctrl=”no” Alt=”yes” Shift=”yes” … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)