Configuring Notepad++ to Permanently Print with a Smaller Font Size
A very good solution (the best solution IMO) is to change the print font size by using a script. You must have the NppExec plug-in installed.
To install the NppExec plugin (if not already installed):
- Go to menu Plugins > Plugin Manager > Show Plugin Manager.
- Select NppExec.
- Click Install.
- After the installation finishes, restart Notepad++ to enable the plugin.
To reduce the size of the printing font, create a “script”:
- Go to Plugins > NppExec > Execute.
- Type the following two lines on separate lines. The first line (NPP_CONSOLE) tells Notepad++ to disable console output. The second line (SCI_SENDMSG) tells it ++ to reduce the font size (2146) by 2 levels (-2). Ensure both commands are on separate lines. Specify -3 or -4 for an even smaller font size.
NPP_CONSOLE 0 SCI_SENDMSG 2146 -2
- Click “Save…”
- Assign the script a descriptive name;e.g., PrintSmallerFontSize.
- Click OK.
To make this change permanent:
- Go to menu Plugins > NppExec > Advanced Options…
- Go to “Execute this script when Notepad++ starts“.
- Select your script by its assigned name from the drop-down list.
- Click OK.
Now Notepad++ will always print with a reduced font size so you can fit more text or code on each printed page.
If you desire, you can create another script (e.g., PrintNormalFontSize) that restores the default printing font size; just replace the -2 with 0.
For those who don’t want to deal with scripting plugins: You can do the same using my ExtSettings plugin, it’s available via Plugins Admin. See also >>> here <<<.