Skip to content

segment-boneyard/reactive-highlight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reactive-highlight

Add synxtax highlighting to an element.

Installation

$ component install segmentio/reactive-highlight

Usage

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>

License

MIT

About

Add synxtax highlighting to an element.

Resources

Stars

Watchers

Forks

Packages

No packages published