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

ngdpCodeSnippet not working for css or scss language settings #17

Open
Bill77 opened this issue Aug 28, 2024 · 1 comment
Open

ngdpCodeSnippet not working for css or scss language settings #17

Bill77 opened this issue Aug 28, 2024 · 1 comment
Labels
angular-module-system bug Something isn't working

Comments

@Bill77
Copy link

Bill77 commented Aug 28, 2024

It seems the ngdpCodeSnippet directive is not working for non-Angular/typescript settings, I just tried for css, and it doesn't seem to be working.

Here is what I have in my template:

<textarea ngdpCodeSnippet lang="scss">
    .header-style {
      display: flex;
      align-items: center;
      ecl-icon {
        height: 0.875rem;
        width: 0.875rem;
        margin-right: 0.5rem;
      }
    }
</textarea>

<!-- Trying the other way -->
<ngdp-code-snippet lang="scss">
  <textarea>
      .header-style {
        display: flex;
        align-items: center;
        ecl-icon {
          height: 0.875rem;
          width: 0.875rem;
          margin-right: 0.5rem;
        }
      }
  </textarea>
</ngdp-code-snippet>

Here is what I see.

image

Also here is what I see via DevTools - looks like the lang to languages isn't being propagated?
image

Apologies, if this was user error? 😄

@zjkipping
Copy link
Contributor

Hey Bill, apologies for the late response. As far as I can tell from a quick glance we are supporting everything that hljs supports. I'll triage this issue, but we are a little short staffed for working on our open source packages currently. Will see if we can get this worked on though.

@zjkipping zjkipping added bug Something isn't working angular-module-system labels Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
angular-module-system bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants