@vue-termui/syntax-highlight
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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

Package Sidebar

Install

npm i @vue-termui/syntax-highlight

Weekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

39 kB

Total Files

6

Last publish

Collaborators

  • webfansplz
  • posva