ember-themed-syntax
An out-of-the-box solution for syntax highlighting with a couple of themes included
Installation
ember install ember-themed-syntax
Languages
List of supported highlight.js languages
Demo and Documentation
http://crodriguez1a.github.io/ember-themed-syntax/
Usage
The following params are accepted
lang
: default html - The coding language inside the blocktheme
: default light - Your theme selectiontransparent
: default false - When set to true, a background color will not be appliedwithBuffers
: default true - Adds a line break to beginning and end of each blockcode
: default '' - Use instead of template block parameter to bind code input
Template
{{#themed-syntax lang="htmlbars" theme="dark"}} {{! Some code }} {{/themed-syntax}}
The default theme is set to light
{{#themed-syntax lang="htmlbars"}} {{! Some code }} {{/themed-syntax}}