robotcodedev / robotcode

RobotFramework support for Visual Studio Code
https://robotcode.io
Apache License 2.0
168 stars 13 forks source link

[QUESTION] Syntax highlighter for XPath #202

Closed danielHalan closed 5 months ago

danielHalan commented 6 months ago

Please describe. I am trying to find any syntax highlighter for XPaths in VSCode without any luck, anyone has found any additional extension for this?

One solution would be for XPath highlighting in Yaml files, defining XPath's as variables.

d-biehl commented 5 months ago

I don't know of any extension that can do this either. The problem here is how such support should recognise where an XPath should be defined and where not. You can validate YAML files with a JSON schema and thus offer a certain degree of code support, but there is no official definition for an XPATH type.

Why don't you make an example of how you could imagine this. Or what problem you actually want to solve.

Maybe you can also ask in the Robot Framework Slack in the #vscode channel, there are a few more people looking in, maybe they have an idea.