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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -