Skip to content

Commit 8fe36a1

Browse files
committed
mention %-syntax instead of nonexistent $(SYS.var)
1 parent 445ba61 commit 8fe36a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

content/docs/config-files.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ Although it is possible for several commands to have the same name, this is conf
127127

128128
The run command may contain any valid command for the <abbr title="Operating System: Generally Windows. If you use Notepad++ in a Linux WINE environment or similar, could you create a pull request clarifying whether it's windows-style command syntax or linux-style command syntax.">Windows OS</abbr>. If you use a command that can be found in your PATH (like `cmd.exe`), then you don't need to specify the full path to the command. If it's not in your path, then you _should_ specify the full path. Note that Windows will launch your default browser if you put a URL in this If the command, or one of its arguments, has an embedded space, then put quotes around it (like you would for any command line environement). For example, `<Command name="Run Putty" ... >"c:\program files\putty\putty.exe" -ssh -load "my session"</Command>` shows the quotes around the executable and one of the arguments, because both have spaces.
129129

130-
There are a number of variables available, which are accessed in the form `$(VARIABLE_NAME)`, which can be used to supply portions of the command entry.
130+
There are a number of Notepad++-specific variables available, which are accessed in the form `$(VARIABLE_NAME)`, which can be used to supply portions of the command entry.
131131

132132
Variable | Description | Example
133133
--------------------|:--- |:---
@@ -142,6 +142,8 @@ CURRENT_COLUMN | the column number where the cursor is currently located in
142142
NPP_DIRECTORY | the directory where the `notepad++.exe` executable is located | `c:\Program Files\notepad++`
143143
NPP_FULL_FILE_PATH | the full path to the `notepad++.exe` | `c:\Program Files\notepad++\notepad++.exe`
144144

145+
If you want access to a Windows environment variable (like `TMP`), use the standard `%`-notation for windows variables (like `%TMP%`).
146+
145147
## User Interface settings: `config.xml`
146148

147149
The following sections are defined:

0 commit comments

Comments
 (0)