Skip to content

Highlighters

A highlighter is a saved text search with a color. While it is on, the tree tints every node it matches, in every JSON document you open, so you can spot errors, a customer’s ID, or deprecated fields at a glance. Highlighters work in the Tree view of JSON files, not NDJSON files, and their colors also mark the minimap.

  1. Search for the text, with the mode and options you want.
  2. Select the star in the search bar, or choose Search → Save Search as Highlighter.

The highlighter is named after the search text and gets a color that no other highlighter uses, when one is free. A notice confirms it, with a Show button that opens the Highlighters panel. Once a search is saved, the star turns its highlighter on or off.

You can also select From search in the Highlighters panel to save the search that is in the search bar.

Select Highlighters on the activity rail, or choose Search → Show Highlighters, to open the panel. Each highlighter shows its name, its search text and options, and how many nodes it matches in the current document.

To Do this
Turn a highlighter on or off Select its checkbox
Change its color Click its color swatch; each click picks the next color
Rename it Double-click its name, type, and press Enter
Run it as a normal search Select Run in the search bar
Delete it Select Delete
Turn all of them off, or back on Select Disable all or Enable all at the top of the panel

Up to 8 highlighters can be on at once, one per color. When a node matches several highlighters, it takes the color of the one higher in the list.

While a large file is still being indexed, a highlighter’s count can be marked “may be partial”.

Your highlighters are kept between sessions and are the same in every tab. They are not part of workspaces.

To hide everything the highlighters do not match, turn on Filter tree in the Highlighters panel. The tree keeps the highlighted nodes and the objects and arrays that contain them.

  • Any keeps nodes that match any highlighter that is on. All keeps only nodes that match every one of them.
  • To hide the matches of one highlighter instead, select its Exclude from the filter button, which appears while Filter tree is on.

Turning on Filter tree turns off the search bar’s matches-only filter, and the other way around.