How do I use Notepad++ (or other) with msysgit?

git config –global core.editor “‘C:/Program Files/Notepad++/notepad++.exe’ -multiInst -notabbar -nosession -noPlugin” Or, for 64-bit Windows and a 32-bit install of Notepad++: git config –global core.editor “‘C:/Program Files (x86)/Notepad++/notepad++.exe’ -multiInst -notabbar -nosession -noPlugin” Or, the following can be issued on the command line on either 32-bit or 64-bit Windows. It will pull the location of notepad++.exe from … Read more

Is it possible to define a pattern and reuse it to capture multiple groups?

To reuse a pattern, you could use (?n) where n is the number of the group to repeat. For example, your actual pattern : (PAT),(PAT), … ,(PAT) can be replaced by: (PAT),(?1), … ,(?1) (?1) is the same pattern as (PAT)whatever PAT is. You may have multiple patterns: (PAT1),(PAT2),(PAT1),(PAT2),(PAT1),(PAT2),(PAT1),(PAT2) may be reduced to: (PAT1),(PAT2),(?1),(?2),(?1),(?2),(?1),(?2) or: … Read more

How to Execute a Python Script in Notepad++?

First option: (Easiest, recommended) Open Notepad++. On the menu go to: Run -> Run.. (F5). Type in: C:\Python26\python.exe “$(FULL_CURRENT_PATH)” Now, instead of pressing run, press save to create a shortcut for it. Notes If you have Python 3.1: type in Python31 instead of Python26 Add -i if you want the command line window to stay … Read more

Find CRLF in Notepad++

[\r\n]+ should work too Update March, 26th 2012, release date of Notepad++ 6.0: OMG, it actually does work now!!! Original answer 2008 (Notepad++ 4.x) – 2009-2010-2011 (Notepad++ 5.x) Actually no, it does not seem to work with regexp… But if you have Notepad++ 5.x, you can use the ‘extended‘ search mode and look for \r\n. … Read more