Recent versions of Firefox, Chrome, Edge, Opera and Safari. IE10+
<!DOCTYPE html><title>vuecode demo</title><scriptsrc="https://unpkg.com/vue"></script><scriptsrc="https://unpkg.com/vuecode.js/dist/vuecode.umd.js"></script><linkrel="stylesheet" href="https://unpkg.com/vuecode.js/dist/vuecode.css"><divid="app"><vuecodetitle="Add new proyect vuecode"><divslot="demo"><buttonclass="btn" type="button" name="button">Example</button></div><divslot="code">
```js{1,6}
var btn = document.querySelector('.btn')
btn.addEventListener( 'click' , function(){
console.log('click')
})
``/`
</div></vuecode></div><script>newVue({}).$mount('#app')</script># npm
npm install vuecode.js# yarn
yarn add vuecode.jsimportVuefrom'vue'importVuecodefrom'vuecode.js'import'vuecode.js/dist/vuecode.css'Vue.use(Vuecode)Vuecode is an open source MIT project if you want to contribute to keep improving, If you are interested in supporting this project, please consider becoming a patron. [patron]
This library was created and is supported by Lusaxweb