Open bakotiinii opened 1 year ago
You also need to add in index.html
:
<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/highlightjs/cdn-release/build/styles/atom-one-dark.min.css" />
<script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release/build/highlight.min.js"></script>
Or refer to the As HTML Tags section of https://highlightjs.org/.
I followed the instruction but and got "Can't find hljs under window" warning in console. So what i did:
1) Add in my app.module.ts
2) Download css/js and create local highlight.css/highlight.js
im my component:
in angular.json
p.s. also i tried adding urls to cnd in html file.
And in component.html
And no render and warning about hljs in console. Do you have any ideas?