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

highlightChildren example #66

Closed
masoudline opened this issue Dec 14, 2018 · 4 comments
Closed

highlightChildren example #66

masoudline opened this issue Dec 14, 2018 · 4 comments

Comments

@masoudline
Copy link

masoudline commented Dec 14, 2018

I add highlightChildren to div like this:
<div class="question-description" highlightChildren [innerHtml]="question.description | safeHtml"></div>
but noting work

@MurhafSousli

@MurhafSousli
Copy link
Owner

Please add a reproduction https://stackblitz.com/edit/ngx-highlightjs

@masoudline
Copy link
Author

masoudline commented Dec 14, 2018

in your readme the highlightChildren example not found

Highlight children code elements

<div highlightChildren>
  <pre><code [textContent]="htmlCode"></code></pre>
  <pre><code [textContent]="tsCode"></code></pre>
  <pre><code [textContent]="cssCode"></code></pre>
</div>

Check this stackblitz

i cant add my project in stackblitz

@MurhafSousli
Copy link
Owner

@masoudline Ops! It seems that it was not saved, I made a new one, here you go https://stackblitz.com/edit/ngx-highlightjs-children?file=src/app/home/home.component.html

@MurhafSousli MurhafSousli changed the title highlightChildren not work! highlightChildren example Dec 14, 2018
@masoudline
Copy link
Author

masoudline commented Dec 14, 2018

@MurhafSousli please see my stackblitz project:

I cannot add highlight js to div with htmlInner:

my project in stackbiltz

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

2 participants