Created
November 3, 2015 20:55
-
-
Save JulienTant/a81d0441fe2fbd97a05a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<pre class="{{ language ? 'language-' + language : '' }}"> | |
<code > | |
<slot /> | |
</code> | |
</pre> | |
</template> | |
<script type="text/ecmascript-6"> | |
var hljs = require('highlight.js'); | |
export default { | |
props: ['language'], | |
ready () { | |
hljs.highlightBlock(this.$el); | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment