PhpStorm 2023.2 Help

XPathView + XSLT plugin settings

Before you start

XPathView plugin settings are configured on the XPath Viewer page of the Settings dialog.

Item

Description

Scroll first hit into visible area

Select this checkbox to have the editor automatically scroll to the first XPath match.

Use node at cursor as context node

Select this checkbox to have the entered XPath expression use the currently selected node (tag/attribute/pi, and so on) as its context node and evaluate the expression relatively to this node.

Highlight only start tag instead of whole tag content

Do one of the following:

  • Select this checkbox to have only the name of a matching tag highlighted.

  • Clear this checkbox to have the entire content of a matching tag highlighted.

Add error stripe markers for each result

Select this checkbox to have each match supplied with an error stripe marker which can be quickly navigated to. The tooltip of each marker shows the matched content.

Colors

In this area, configure color indication during execution of XPath expressions. Clicking on the color box will open the Select Color dialog in which you can modify the current color indication.

  • Highlight Color: select the color to indicate XPath matches in the editor.

  • Context Node Color: select the color to indicate the current context node.

Last modified: 01 September 2023