simple-syntax-highlighter

A Vue.js syntax highlighter that reads the source code you give it and highlights it, for Humans.

Usage no npm install needed!

<script type="module">
  import simpleSyntaxHighlighter from 'https://cdn.skypack.dev/simple-syntax-highlighter';
</script>

README

Simple Syntax Highlighter

Latest Version on NPM Software License npm

A very lightweight and easy to use syntax highlighter (not an editor) for Vue.js and Vue 3. Multiple coding languages supported. What I use in all my libs documentations. ;)


Installation

npm i simple-syntax-highlighter

Vue 3

npm i simple-syntax-highlighter@next

Demo & Documentation

https://antoniandre.github.io/simple-syntax-highlighter


Browser Support

Chrome Firefox Safari Opera Edge
Latest ✔ Latest ✔ Latest ✔ Latest ✔ Latest ✔

Donating

If you like this library, you can buy me a beer or become a sponsor!

paypal Thank you!


Contributing

If you have any idea, feel free to open an issue to discuss a new feature or fork Simple Syntax Highlighter and submit your changes back to me.


Release Notes

  • Version 1.5.0 Removed support for IE - it's finally over. :tada:
  • Version 1.4.0 Added Pug language support
  • Version 1.3.0 Added the copy-button option
  • Version 1.2.0 Added the dark option
  • Version 1.1.0 Added the reactive option
  • Version 1.0.0 First public release