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

CSS highlighting & autocomplete #3

Closed
lukepighetti opened this issue May 2, 2020 · 5 comments
Closed

CSS highlighting & autocomplete #3

lukepighetti opened this issue May 2, 2020 · 5 comments

Comments

@lukepighetti
Copy link
Contributor

lukepighetti commented May 2, 2020

What do we need to enable CSS highlighting & autocomplete in syntax highlighting? Can we somehow pipe Emmet in?

@s0kil
Copy link
Contributor

s0kil commented May 3, 2020

CSS highlighting could be done similar to how we handle HTML, as an embedded language

Autocomplete would be more difficult, and I would like for this feature to be implemented first.
This would allow the language server to provide smart results based on the context.
For example, we would know that width accepts CSS Units and we could also provide autocomplete when using arguments:

  style base(color : String) {
    color: #{color};
	width: #{color} <- color does not make sense here
  }

@s0kil
Copy link
Contributor

s0kil commented May 3, 2020

We could use something like this, how HTML handles <style> tag highlighting.

@lukepighetti
Copy link
Contributor Author

lukepighetti commented May 3, 2020

Honestly if we highlight the css-property part of css-property: value; that would be a worthy improvement without getting into the nitty gritty. That would at least match the formatting on https://mint-lang.com website.

I didn't investigate what you suggested, though.

@gdotdesign
Copy link
Member

@s0kil @lukepighetti I think with #21 this issue is resolved?

@lukepighetti
Copy link
Contributor Author

As pictured in #21 this issue is resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants