Using PrismJs with AngularJs
<pre>
<code class="language-markup" prism>
{{ snippet }}
</code>
</pre>
angular.module('Prism', []).
directive('prism', [function() {
return {
restrict: 'A',
link: function ($scope, element, attrs) {
element.ready(function() {
Prism.highlightElement(element[0]);
});
}
}
}]
);