▲ Syntax-Highlight - Custom Element For Syntax Highlighting Content at github.com▼3 up and 0 down, posted by tracker1 8 days ago 4 comments
tracker1 8 days ago. link 1 point ▲ ▼Came across this today, and thought it was nifty... would be cool if it had a more feature-rich set of language support though. Still aa nice example of what can be done with custom elements.
andreruffert 5 days ago. link 1 point ▲ ▼Thanks for sharing! You can actually configure the supported languages. Perhaps this isn't clear in the documentation. https://github.com/andreruffert/syntax-highlight-element?tab=readme-ov-file#configuration window.she.config = { languages: [ // language codes from the list ] }; List of supported languages: https://prismjs.com/#supported-languages
andreruffert 5 days ago. link 1 point ▲ ▼Here you can find a simple example using "markdown" as language. https://codepen.io/andreruffert/pen/dPoQzzB