pc035860 / angular-highlightjs

AngularJS directive for syntax highlighting with highlight.js
http://pc035860.github.io/angular-highlightjs/example/
MIT License
294 stars 53 forks source link

"hljs-source" needs to be changed to "source" in the README #76

Open chaddjohnson opened 8 years ago

chaddjohnson commented 8 years ago

Looking at the live example, it looks like hljs-source does not work and source must be used instead. Here is what I ended up with which works:

<div hljs hljs-language='json' source="'{{queueDataModal.queueData | json}}'"></div>

If you'd like me to do this and submit a pull request, let me know.

pc035860 commented 8 years ago

I think it's just a an example code mistake. Both hljs-source and source should work.

See this example http://plnkr.co/edit/WCmBTQ?p=preview

You can submit a PR for the example code correction, thanks!