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

Enabling scss syntax coloring and intellisense/language support for <style lang="scss"> tag #113696

Open
fehmi opened this issue Jan 2, 2021 · 6 comments
Assignees
Labels
feature-request Request for new features or functionality grammar Syntax highlighting grammar
Milestone

Comments

@fehmi
Copy link

fehmi commented Jan 2, 2021

Vscode has a built-in scss extension and works great with files with .scss extensions. Is it impossible to enable it for <style> tag in a HTML file something like this.

<template>
  <p>
    Hello {{data.name}}!
    <a href="#">This is invisible</a>
  </p>
</template>

<style lang="scss">
  p {
    color: red;
    a {
      display: none;
    }
  }
</style>

<script>
  class {
    data = {
      name: "fehmi",
    };
  }
</script>

Unfortunately the result is similar to this in Vscode right now.

image

I could not find a way for days now.

@alexr00 alexr00 added feature-request Request for new features or functionality grammar Syntax highlighting grammar labels Jan 5, 2021
@alexr00 alexr00 added this to the Backlog Candidates milestone Jan 5, 2021
@fehmi fehmi changed the title Enabling scss syntax coloring and intellisense/language supoort for <style land="scss"> tag Enabling scss syntax coloring and intellisense/language support for <style lang="scss"> tag Jan 5, 2021
@marblewraith
Copy link

marblewraith commented Apr 19, 2021

This shouldn't be only for scss, you should be able to do <style lang="postcss">, <style lang="less">, etc.

@guilmarc
Copy link

guilmarc commented Oct 1, 2021

Having a problem with this feature. Nested classes always shows in white.

Screen Shot 2021-10-01 at 1 42 35 PM

@fehmi
Copy link
Author

fehmi commented Oct 3, 2021

This feature is not implemented as far as I know, isn't it?

@guilmarc
Copy link

guilmarc commented Oct 3, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality grammar Syntax highlighting grammar
Projects
None yet
Development

No branches or pull requests

5 participants
@guilmarc @fehmi @alexr00 @marblewraith and others