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

EOL conversion in notepad ++

That functionality is already built into Notepad++. From the “Edit” menu, select “EOL Conversion” -> “UNIX/OSX Format”. screenshot of the option for even quicker finding (or different language versions) You can also set the default EOL in notepad++ via “Settings” -> “Preferences” -> “New Document/Default Directory” then select “Unix/OSX” under the Format box.

Notepad++ add to every line

Follow these steps: Press Ctrl+H to bring up the Find/Replace Dialog. Choose the Regular expression option near the bottom of the dialog. To add a word, such as test, at the beginning of each line: Type ^ in the Find what textbox Type test in the Replace with textbox Place cursor in the first line … Read more