Command Line Arguments
You can pass the arguments to Notepad++ while launch time from the command line or via a shortcut.
SYNOPSIS
DESCRIPTION
-
-multiInst : Notepad++ is uniq instance by default. This option allows you to launch several instances of Notepad++.
-
-noPlugin : Use this parameter to launch Notepad++ without loading the plugins. This parameter is useful when you want to determinate where the bad behaviour or crash come from (from the plugins or from Notepad++ itself).
- -l : This option apply the Language to the filesToOpen to open. ex:
notepad++ -lxml d:\myproj\proj.vcproj
In this example, the file proj.vcproj will be opened as a xml file, even its extension vcproj is not recognized as xml file extension.
the valid Languages are : c, cpp, java, cs, objc, rc, html, javascript, php, vb, sql, xml, asp, perl, pascal, python, css, lua, batch, ini, nfo, tex, fortran, bash, actionscript and nsis.
- -n : Use this option to go to the LineNumber you want after opening filesToOpen. ex:
notepad++ -n150 E:\notepad++\PowerEditor\src\Notepad_plus.cpp
It will open the file Notepad_plus.cpp then scroll the view and place the cursor to the line 150.
-
-nosession : Use this parameter to launch Notepad++ without loading the previous session (the files opened in Notepad++ at the last time).
-
-ro : Use this parameter to open filesToOpen in read only mode.
-
-notabbar : this parameter allows users to turn off tab interface. It may be useful if users want Notepad++ behaviour to be similar to MS Notepad's one:
notepad++ -multiInst -notabbar -nosession d:\file2open
-
filesToOpen : The absolute or relative path of file(s) you want to open.
|