Skip to content

Commit e63224a

Browse files
authored
Merge pull request #95 from notepad-plus-plus/Preferences_4_Advanced_Users
Add "Preferences for Advanced Users" section for non-UI options
2 parents da3d9cd + ea460d8 commit e63224a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

content/docs/preferences.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,26 @@ A variety of settings that didn't fit elsewhere
311311
* `Session file ext.`: populate with a file extension (without the `.`). When you open a file with this extension (whether from Windows file associations, or from the Notepad++ **File > Open** or similar), Notepad++ will treat the file as a session file, and open the files from that session, rather than showing and editing the contents of the file. This will honor the [Multi-Instance](#multi-instance) settings.
312312
* `Workspace file ext.`: populate with a file extension (without the `.`). When you open a file with this extension (whether from Windows file associations, or from the Notepad++ **File > Open** or similar), Notepad++ will treat the file as a workspace file, and open that workspace, rather than showing and editing the contents of the file. This will honor the [Multi-Instance](#multi-instance) settings.
313313

314+
## Preferences for Advanced Users
315+
316+
The following settings are for rather specific needs and could cause some confusion if they are enabled. As a result they are not set via UI but in `config.xml`. Note that you should close Notepad++ then edit `config.xml` by using another editor (Notepad) to prevent your modification from being erased when Notepad++ exits.
317+
318+
* Allow regex backward search: Backward regex searching is foribidden by default (starting in v7.8.7) due to sometimes surprising results. However, if this feature is needed, you can set `regexBackward4PowerUser` attribute to `yes` in the `FindHistory` tag of `config.xml` to eanable this option:
319+
```
320+
<FindHistory nbMaxFindHistoryPath="10" nbMaxFindHistoryFilter="10" nbMaxFindHistoryFind="10" nbMaxFindHistoryReplace="10" matchWord="no" matchCase="no" wrap="yes" directionDown="yes" fifRecuisive="yes" fifInHiddenFolder="no" dlgAlwaysVisible="no" fifFilterFollowsDoc="no" fifFolderFollowsDoc="no" searchMode="0" transparencyMode="1" transparency="150" dotMatchesNewline="no" isSearch2ButtonsMode="yes" "regexBackward4PowerUser"="yes">
321+
```
322+
Simply add `"regexBackward4PowerUser"="yes"` if this option is absent.
323+
324+
* Changing the command-line interpreter used: by default, **File > Open Containing Folder > cmd** will launch the `cmd.exe` command-line interpreter. If you have a preferred command-line interpreter (such as `powershell`), you can add another `<GUIConfig...>` tag inside the `<GUIConfigs>` section:
325+
```
326+
<GUIConfig name="commandLineInterpreter">powershell</GUIConfig>
327+
```
328+
If your command-line interpreter is not in your path, make sure to include the drive and folder in the contents of that tag. If there are spaces, make sure to use quotes around the path:
329+
```
330+
<GUIConfig name="commandLineInterpreter">"c:\path\with spaces\to\cli.exe"</GUIConfig>
331+
```
332+
333+
314334
## Style Configurator
315335

316336
The Style Configurator dialog has three regions: Select theme, language and style selection lists, and the style defition.

0 commit comments

Comments
 (0)