Skip to content

Commit 7e7bbf8

Browse files
authored
add search results styles
1 parent f410a66 commit 7e7bbf8

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

content/docs/preferences.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ The Save & Close button will save the settings and close the dialog. The Cancel
308308

309309
### Global Styles
310310

311-
Unlike the other "languages", which are language or file-type specific, the "Global Styles" set the default stylings for all types of documents using the active theme. Except for the "Global override" style, a style for a particular language will override a "Global Style" setting.
311+
Unlike most of the other items listed in the "Languages" column, which are language or file-type specific, the "Global Styles" set the default stylings for all types of documents using the active theme. Except for the "Global override" style, a style for a particular language will override a "Global Style" setting.
312312

313313
Some of these styles apply to the background only, some apply to the foreground only, and some apply to both.
314314

@@ -342,6 +342,19 @@ Some of these styles apply to the background only, some apply to the foreground
342342
* Inactive tabs [background and foreground] ⇒ Selects the colour to be used for the filename displayed in the titlebars of all inactive tabs.
343343
* URL hovered [foreground only] ⇒ If [Preferences > MISC. > Clickable Link](#misc) is enabled, when your cursor is hovering over a URL, the URL's foreground colour will follow this setting.
344344

345+
### Search result styles
346+
347+
The "Search result" styles is another set of styles which are not language or file-type specific. Instead, they are the styles that are applied in the **Search > Search Results Window**.
348+
349+
Some of these styles apply to the background only, some apply to the foreground only, and some apply to both.
350+
351+
* Search Header [background and foreground] ⇒ The first line of every group of search results tells what the search term was used, how many matches there were, and how many of the searched files contain matches are listed in this style.
352+
* File Header [background and foreground] ⇒ For each file in a group of search results, the file name and how many matches were in that file are listed in this style.
353+
* Line Number [background and foreground] ⇒ For each line with a match, the line number of that match will be formatted according to this style.
354+
* Hit Word [background and foreground] ⇒ The matching word will be formatted using this style inside the search results.
355+
* Selected Line [background and foreground]<!-- This appears to not affect things in v7.7.1; should this be filed as a bug; this was discussed in a recent forum post, though I cannot find it right now -->
356+
* Current line background [background only] ⇒ As you click on lines in the search results window, this style will be used to set the background colour of the search-result-window line that was clicked.
357+
345358
### Configuration file: `stylers.xml`
346359

347360
If you prefer to edit XML instead of using the GUI, you may use the `stylers.xml` configuration file to edit the default theme, or `themes\blah.xml` to edit theme "blah".

0 commit comments

Comments
 (0)