feat: code highlighting client-side

This commit is contained in:
Nicolas Giard
2018-09-16 22:30:24 -04:00
parent 1bc98068e9
commit d393a95495
6 changed files with 32 additions and 81 deletions

View File

@@ -49,7 +49,7 @@
.headline.grey--text.text--darken-3 {{title}}
.caption.grey--text.text--darken-1 {{description}}
v-divider
.contents
.contents(ref='container')
slot(name='contents')
v-flex(lg3, xl2, fill-height, v-if='$vuetify.breakpoint.lgAndUp')
@@ -111,6 +111,7 @@
<script>
import { StatusIndicator } from 'vue-status-indicator'
import Prism from '@/libs/prism/prism.js'
export default {
components: {
@@ -206,6 +207,9 @@ export default {
}
}
},
mounted () {
Prism.highlightAllUnder(this.$refs.container)
},
methods: {
toggleNavigation () {
this.navOpen = !this.navOpen