HEX
Server: LiteSpeed
System: Linux s3604.bom1.stableserver.net 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User: dmstechonline (1480)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/dmstechonline/whatsapp.dmstech.online/node_modules/@wdns/vue-code-block/README.md
<p align="center">
  <img alt="Vue" width="100" src="https://github.com/webdevnerdstuff/vue-code-block/raw/main/public/vue.svg">
</p>

<p>
  <h1 align="center">Vue 3 CodeBlock</h1>
</p>

<p align="center">
  <a href="https://www.npmjs.com/package/@wdns/vue-code-block">
    <img src="https://img.shields.io/npm/v/@wdns/vue-code-block?color=1867c0&logo=npm" alt="NPM Package">
  </a>
  &nbsp;
  <a href="https://github.com/webdevnerdstuff/vue-code-block">
    <img src="https://img.shields.io/badge/GitHub-WebDevNerdStuff-brightgreen.svg?logo=github" alt="@WebDevNerdStuff">
  </a>
</p>


## Description

The Vue 3 CodeBlock component leverages the power of [PrismJS](https://prismjs.com/) or [Highlight.js](https://highlightjs.org/) to provide syntax highlighting for code blocks within your application. The component takes a prop, which is the code to be highlighted, and uses PrismJS or Highlight.js to render the code with syntax highlighting. The component supports a variety of programming languages and can be customized with different themes to match your application's design. With this component, your users can display their code snippets with ease and clarity, making it easier to share and collaborate on code within your application.


## Installation
 
Using [pnpm](https://pnpm.io/):
```
pnpm add @wdns/vue-code-block
```

Using npm:
```
npm i @wdns/vue-code-block
```
 
## Documentation
 
[Documentation & Demo](https://webdevnerdstuff.github.io/vue-code-block/)

## Dependencies
 
[PrismJS](https://prismjs.com/)  
[Highlight.js](https://highlightjs.org/)  
[Vue 3](https://vuejs.org/)  
[UAParser.js](https://www.npmjs.com/package/ua-parser-js)


## Change Log
 
[CHANGELOG](https://github.com/webdevnerdstuff/vue-code-block/blob/main/CHANGELOG.md)


## License

Copyright (c) 2023 WebDevNerdStuff  
Licensed under the [MIT license](https://github.com/webdevnerdstuff/vue-code-block/blob/main/LICENSE.md).