Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

vue-terminal/syntax-highlight

Repository files navigation

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

About

Syntax highlight component for vue-termui.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

AltStyle によって変換されたページ (->オリジナル) /