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

How do you get Emmet to return the right comment type? #55

Open
djmtype opened this issue Oct 15, 2020 · 1 comment
Open

How do you get Emmet to return the right comment type? #55

djmtype opened this issue Oct 15, 2020 · 1 comment

Comments

@djmtype
Copy link

djmtype commented Oct 15, 2020

In VS Code, I have Emmet automatically add comments.

"emmet.syntaxProfiles": {
    "html": {
        "filters": "html, c"
    }
}

That's great for HTML comments. But, what if you're using Blade or Nunjucks? You still want to use Emmet's automated comments with these languages, but the comments are different.

Blade: {{-- --}}

Nunjucks: {# #}

How do you make Emmet smart enough to realize context?

@djmtype
Copy link
Author

djmtype commented Oct 15, 2020

Something like this doesn't work BTW:

"emmet.preferences": {
  "html": {
    "filter.commentAfter": "<!-- /[#ID][.CLASS] -->",
  },
  "njk": {
    "filter.commentAfter": "{# /[#ID][.CLASS] #}",
  }
}

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

No branches or pull requests

1 participant