1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 1 1 1 1 1 | import {customAttribute, inject} from 'aurelia-framework'; import 'prismjs'; @customAttribute('au-syntax') @inject(Element) export class SyntaxHighlighter { constructor(element) { this.element = element; } bind() { Prism.highlightElement(this.element); } } |