[Client] Improve syntax highlighting

Resolve #3926
Resolve #3390
This commit is contained in:
syuilo
2019-01-27 14:34:52 +09:00
parent f9f70d5df4
commit 4b191c7f68
7 changed files with 76 additions and 372 deletions

View File

@ -0,0 +1,28 @@
<template>
<x-code :code="code" :lang="lang" :inline="inline"/>
</template>
<script lang="ts">
import Vue from 'vue';
export default Vue.extend({
components: {
XCode: () => import('./code-core.vue').then(m => m.default)
},
props: {
code: {
type: String,
required: true
},
lang: {
type: String,
required: false
},
inline: {
type: Boolean,
required: false
}
}
});
</script>