0.0.1 • Published 9 years ago
ember-code-view v0.0.1
Ember-code-view
Ember implementation of custom code-viewer, make code hightlight(html, js, css).
Guide
step1: template.hbs
{{#code-view lang="js"}}
// write js code
{{/code-view}}
{{#code-view lang="css"}}
// write css code
{{/code-view}}
{{#code-view lang="html"}}
// write html code
{{/code-view}}step2: copy kcodeview
copy ember-code-view/vendor/kcodeview to your-project/vendor/kcodeview
step3: pull in kcodeview
add this code in your-project/ember-cli-bulid.js
app.import('vendor/kcodeview/KylinJS.js')
app.import('vendor/kcodeview/kcodeview-js.js');
app.import('vendor/kcodeview/kcodeview-css.js');
app.import('vendor/kcodeview/kcodeview-html.js');
app.import('vendor/kcodeview/kcodeview.css');end of Guide,that's all.
Access on Line
Installation
git clone https://github.com/rgy19930329/ember-code-view.gitcd ember-code-viewnpm installbower install
Running
ember serve- Visit your app at http://localhost:4200.
Running Tests
npm test(Runsember try:eachto test your addon against multiple Ember versions)ember testember test --server
Building
ember build
For more information on using ember-cli, visit http://ember-cli.com/.