2.27.2013

Customizing Notepad++ Right-Click Menu

Customize the Notepad++ Right-Click Menu with EOL Conversion Options 

  1. Open Notepad++
  2. Click Settings > Edit PopUp ContextMenu
  3. Notepad++ will open an XML file located in C:\Users\%USERNAME%\AppData\Roaming\Notepad++\contextMenu.xml 
  4. Add the followings lines to Notepad++ (below)
<Item id="0"/>
<Item id="45001" name="Convert to Windows Format"/>
<Item id="45002" name="Convert to UNIX Format"/>
<Item id="45003" name="Convert to MAC Format"/>


     5. Close and re-open Notepad++

<Item id="0"/>
<Item id="45001" name="Convert to Windows Format"/>
<Item id="45002" name="Convert to UNIX Format"/>
<Item id="45003" name="Convert to MAC Format"/>



The first line add's a separator. 
The second line adds the convert to Windows Format
The third line adds the convert to UNIX Format.
The fourth line adds the convert to MAC format. 

These menu items are found also under...
Edit > EOL Conversion > Switch to Windows 
Edit > EOL Conversion > Switch

Another option to consider adding is ...
View > Show Symbol > Show All Characters 

This option is handy in that it will show the end of line and line feed characters. Unix files only have LF, while as Windows usually has CRLF

<Item id="44019" name="Show All Characters"/>

The location to find the Item Id's that go with each menu option is located in C:\Program Files (x86)\NotePad++\localization\english.xml

This right-click context menu is nice when editing UNIX/LINUX files in Windows. 





No comments:

Post a Comment

Note: Only a member of this blog may post a comment.