Skip to content

Command line

birchpad [-n<line>] [-c<column>] [-p<position>] [-l<language>] [-ro] [-multiInst]
[-nosession] [-openSession] [--] [FILE]...
Option Meaning
-n<line> Go to a line (from 1).
-c<column> Go to a column (from 1).
-p<position> Go to a byte offset (from 0); wins over -n and -c.
-l<language> Highlighting language: -lcpp, -lpython, -lnormal. Notepad++’s names and Birchpad’s ids both work.
-ro Open the files read-only.
-fullReadOnly Every document read-only for this run.
-fullReadOnlySavingForbidden The same, and nothing can be saved.
-multiInst Start a separate instance instead of handing the files to a running one.
-nosession Neither restore nor save the session.
-openSession The files are sessions (Birchpad’s, or Notepad++’s session.xml).
-notabbar Hide the tab bar.
-alwaysOnTop Keep the window on top.
-systemtray Start in the system tray (minimized on Linux).
-x<pixels>, -y<pixels> The window’s position.
-titleAdd="text" Add text to the window title.
-settingsDir="folder" Read the settings from this folder.
-udl="name" Highlight the files with this user defined language.
-r Open the files a wildcard (*.log) matches, in subfolders too.
-monitor Open with change monitoring (tail -f).
-quickPrint Print the files on the default printer.
-loadingTime Show how long loading took.
-qt="text", -qf="file", -qSpeed1…3 Ghost typing: the text typed out in a new document.
-nopluginsupport Start without plugins; -noPlugin does the same.
-L<code> The interface in that language this time: -Lde, -Lru.
-notepadStyleCmdline, -z Stand in for Windows Notepad: Notepad’s path is skipped and the rest is one file name with spaces.
--help Show the command line options.
-- Everything after is a file name, even if it starts with -.

Options ignore case. A folder instead of a file opens as a workspace.

When Birchpad is already running, a second launch hands its files to it, where they open as tabs, and exits. -multiInst opens a window of its own, and instances.mode in the settings makes that the default.

Notepad++’s options work as they do there. -pluginMessage= goes to plugins. The Notepad++ installer’s options and others that have no meaning for Birchpad are accepted and ignored. An unknown option gives a warning but does not stop the start. So file associations, shortcuts and scripts written for Notepad++ keep working once the program path in them is changed.

birchpad -n120 -c5 src\main.rs
birchpad -lpython -ro script.txt
birchpad -openSession "%APPDATA%\Notepad++\session.xml"