Skip to content

Instantly share code, notes, and snippets.

View sunsus's full-sized avatar
🎯
Focusing

sunsus

🎯
Focusing
  • sunsus GmbH
  • Switzerland
View GitHub Profile
@sunsus
sunsus / gist:2a5ce3fbe15f447e7fa7
Last active September 16, 2015 14:06 — forked from SelrahcD/gist:7042692
AngularJs directive for PrismJs
angular.module('ui.prism', []).
directive('uiPrism', [function() {
return {
restrict: 'AE',
replace: 'true',
require: '^ngModel',
template: '<pre class="language-{{scriptLanguage}}" ng-class="{\'line-numbers\':lineNumbers}"><code>{{ngModel}}</code></pre>',
scope: {
ngModel: '=',
scriptLanguage: '=',