sxzz / ast-explorer

AST Explorer: For most popular front-end languages and parsers.
https://ast.sxzz.moe
GNU Affero General Public License v3.0
117 stars 12 forks source link

add code/node highlighting based on selected code/node #33

Closed 0xdevalias closed 6 months ago

0xdevalias commented 7 months ago

Clear and concise description of the problem

On https://astexplorer.net/ it's possible to see/highlight the corresponding node when code is selected, and code when the node is selected. This makes it really easy to check that we're looking at the part of the AST/code that we expect we are.

image

Suggested solution

It would be awesome if this ast-explorer supported a feature like this, as it has far more modern versions of the AST parsers.

Alternative

Living without highlighting, or using the older versions of the parsers on https://astexplorer.net/

Additional context

No response

Validations

sxzz commented 6 months ago

This feature is supported. Please ensure Hide location data is disabled.

0xdevalias commented 6 months ago

Oh, sweet! I somehow missed that. Thanks :)