-
Notifications
You must be signed in to change notification settings - Fork 0
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
Inline JavaScript #15
Comments
This one is definitely not easy as we don't have a standard system for handling languages embedded inside documents written in other languages. Syntax highlighting is the easy one, you've seen how the HTML addin does that already. Beyond that, I think the JS addin would need to provide an API for handling sections of JS inside a larger document, and you'd have to alter the handling of the languages that embed JS (HTML, Razor, ASPX) to use this API to handle JS. e.g.
Obviously you could do this incrementally, e.g. start with a proof of concept that just adds folding support, then work your way down the other features. |
TBH I would put this on hold until you have all the basics working well for JS files. |
I agree. I also like the POC. |
@mhutch my idea for the embedded scanning was to do something similar to R#, not sure if its achievable though. Basically, the inline </script> tag would provide auto-completion members based on the files referenced in <script src=''/>. I'm assuming something like this would require changes to the original add-ins. I guess once we get to this stage, we'll experiment on the simple HTML files first. |
Yeah, the idea with |
Nice. That will make things very easy. |
We need to also support JavaScript inside an inline < script / > block.
Michael, any pointers on how I should go about this? We probably want to ad code completion, code folding, errors, code snippets, document highlighting?, and code formatting inside html and cshtml files.
The text was updated successfully, but these errors were encountered: