koca / vue-prism-editor

A dead simple code editor with syntax highlighting and line numbers. 3kb/gz
https://prism-editor.netlify.com
MIT License
751 stars 84 forks source link

Enabling additional plugins from Prism #103

Closed bfelekoglu closed 3 years ago

bfelekoglu commented 3 years ago

I need to enable line-highlight plugin from Prism but I couldn't see a way to activate a plugin. Are there any way of this? Thank you.

koca commented 3 years ago

Unfortunatelly editor doesn't support prism plugins. You'll have to make ur own or use more advanced editors like monaco or codemirror.

koca commented 3 years ago

btw vue-tut package has line higlighting maybe this helps? https://github.com/evwt/vue-tut/blob/master/src/packages/TutorialHighlighter/TutorialHighlighter.vue

live demo: https://vn192.csb.app/