Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/webdevnerdstuff/vue-code-block

Vue 3 CodeBlock - Highlight your code with ease using this syntax highlighting component powered by PrismJS or Highlight.js.
https://github.com/webdevnerdstuff/vue-code-block

code component javascript neon-bunny pre prism prismjs syntax syntax-highlighting typescript vue vue3

Last synced: about 23 hours ago
JSON representation

Vue 3 CodeBlock - Highlight your code with ease using this syntax highlighting component powered by PrismJS or Highlight.js.

Awesome Lists containing this project

README

        


Vue


Vue 3 CodeBlock



NPM Package

 

@WebDevNerdStuff

## 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).