Syntax highlight component for vue-termui.
npm install @vue-termui/syntax-highlight
<script lang="ts" setup>
improt { TuiBox } from 'vue-termui'
import SyntaxHighlight from '@vue-termui/syntax-highlight'
const code = `const hello = 'world'`
</script>
<template>
<TuiBox>
<SyntaxHighlight :code="code" />
</TuiBox>
</template>
- Type:
string
Source code to highlight.
- Type: Lang
- Type: Theme
Syntax Highlight is based on Shiki