This extension allows you to evaluate simple XPath expressions on the currently opened document. All matches are highlighted.
Current features include:
- Search for XPath expressions in an XML document and highlight the results
- Print information about the result to a seperate output log
- Customize the look of the extension
There are a few settings which allow you to customize the look of the extension. You can find them under Settings > Extension > XPath Tester. For information about valid values for each setting please refer to the vscode api reference.
Default values are:
- Border Style: solid
- Border Width: 1px
- Dark Theme Background Color: #FF000055
- Dark Theme Border Color: darkblue
- Dark Theme Overview Ruler Color: lightblue
- Light Theme Background Color: #0022FF55
- Light Theme Border Color: darkblue
- Light Theme Overview Ruler Color: darkblue
Please reload/restart the extension in order for changes to take effect!
- clone repo
- run 'npm install' to install dependencies
- run 'npm run watch' to compile the extension
- press 'F5' to run the extension
Please refert to the changelog
- add tests
- finish input validation/improve error handling
- add some examples on how to use
- thanks to the contributors of the xpath and xmldom projects which are used for this extension
- thanks to Ben Awad for his tutorial on how to write VSCode extensions. you can check it out here: https://www.youtube.com/watch?v=a5DX5pQ9p5M&t