dimanche 5 avril 2015

Angularjs Style/highlight code block within ng-bind-html

In an effort to learn Angualr.js, I'm trying to collect a Wordpress post, using the plugin WP REST API and display it on a template in its correct format. I've got the post displaying the correct way using sanitize and ng-bind-html.


enter image description here


However, there are code blocks that I had originally highlighted (using WP Code Prettify) within the post. For example:


enter image description here


The question is how do I get the original post to look just like the image above, using ng-bind-html? Or is there another, more efficient way to do this?


Aucun commentaire:

Enregistrer un commentaire