Add synxtax highlighting to an element.
$ component install segmentio/reactive-highlight
Either set the language:
<pre data-highlight="javascript"><code>CODE</code></pre>
Or it can be a method on your view if it's dynamic:
View.prototype.language = function(val){
return desiredLanguage;
};
<pre data-highlight="language"><code>CODE</code></pre>
MIT