javascript - Highlighting code with AngularJS and Highlight.js -
i'm trying highlight code inside <pre><code>
block.
the twist code being injected angular's ng-bind-html
:
<div ng-controller="postscontroller"> <div ng-repeat="post in posts"> <div ng-bind-html="post"></div> </div> </div>
the post
variable contains html , somewhere inside there's <pre><code>
block. can make work outside angular , tried angular-highlightjs, didn't luck. there similar questions here, aren't quite case.
can please? thank you!
ap
Comments
Post a Comment