-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Bidirectional Highlight Function #45
Comments
Thanks for your suggestions. I thought about implementing this but don't know how to do it yet. |
Well, I just started coding, but if you come into the web dev discord on a good day you can get some help from people who would use the feature. link expires in 7 days |
Thanks! I will try it :) |
I know. I would be awesome. I just don't know where to start. |
@yandeu someone in the web dev Discord suggested the following:
|
The part of knowing what element is hovered in the browser is easy. But how to highlight the code or move the cursor in vscode? |
If this is still being working on, then something that could work would be adding an arbitrary page to the server (maybe like /fiveserver/api/highlight ) or something, and then having the page make a POST request whenever something is highlighted, which would update some storage which holds the current hovered id and class(es), and then use the syntax highlighting in vscode with injected grammers ( https://code.visualstudio.com/api/language-extensions/syntax-highlight-guide#injection-grammars ) to match whatever id / classes are hovered. The only issue I can see with this is if I've misunderstood the way vscode syntax highlighting works, or if the user would need the path used for the POST requests. If the second one is a problem, you could have the server for this running alongside the server hosting the content, but that may take up more resources. |
Describe the feature
Thanks!
The text was updated successfully, but these errors were encountered: