Skip to content
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

Autocomplete in HTML #517

Closed
nitanagdeote opened this issue Feb 8, 2024 · 5 comments
Closed

Autocomplete in HTML #517

nitanagdeote opened this issue Feb 8, 2024 · 5 comments
Assignees

Comments

@nitanagdeote
Copy link
Collaborator

image
Autocomplete does not suggest the declared variable in index.html inside the script tag.

@curran curran changed the title Feedback:autocomplete Autocomplete in HTML not working Feb 9, 2024
@curran
Copy link
Contributor

curran commented Feb 9, 2024

Ah yes, it only works in JavaScript files at the moment. It would be nice if it worked in HTML files too! And CSS for that matter.

@curran curran changed the title Autocomplete in HTML not working Autocomplete in HTML Feb 9, 2024
@curran
Copy link
Contributor

curran commented Feb 9, 2024

Oh hey! This should be possible as the CodeMirror HTML language package has completion support

https://github.com/codemirror/lang-html/

@michaelhelper
Copy link
Collaborator

Code mirror autocomplete documentation: https://codemirror.net/examples/autocompletion/

@curran
Copy link
Contributor

curran commented Jun 7, 2024

Summary of scope:

  • Ideally we replicate what is working already for JS, which is that suggestions automatically populate (without hitting CTRL+Space)

Image

  • The auto-closing of tags would also be nice to pull in, if it's easy , but no big deal if not

@curran
Copy link
Contributor

curran commented Jul 10, 2024

Closed in #779 woohoo!

@curran curran closed this as completed Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

When branches are created from issues, their pull requests are automatically linked.

4 participants