Code

View code

Use

HTML

<rg-code></rg-code>

JavaScript

var tags = riot.mount('rg-code', {
  editor: {
    url: 'example.html',
    code: '<h2>Hello World</h2>',
    mode: 'html',
    tabsize: 2,
    softtabs: false,
    wordwrap: false,
    readonly: false
  }
})