@vue-termui/syntax-highlight

v1.0.3
Syntax highlight component for vue-termui.
vue-termui code syntax component syntax-highlight vue

syntax-highlight

Syntax highlight component for vue-termui.






Install

npm install @vue-termui/syntax-highlight

Usage

<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>

Props

code

  • Type: string

Source code to highlight.

lang

theme

Credits

Syntax Highlight is based on Shiki

npm i @vue-termui/syntax-highlight

Metadata

  • MIT
  • Whatever
  • webfansplz
  • released 12/16/2022

Downloads