code-input icon indicating copy to clipboard operation
code-input copied to clipboard

Handlebars support

Open echonax opened this issue 4 years ago • 2 comments

Hello, First of all thanks for creating this project, great stuff.

I tried to change the lang to handlebars but I assume it doesn't work out-of-the-box. Is there a way to register this? Prism and highlight.js do have support for handlebars

Thanks in advance

echonax avatar Apr 15 '22 16:04 echonax

@echonax , this should support all the languages registered as Prism/highlight.js are allowed to highlight however they want using their function in the result. However, the language may not have been imported. Prism has an autoloader plugin for the CDN which seems to work in the demo.

WebCoder49 avatar Apr 16 '22 19:04 WebCoder49

You're right! I was looking at the original example. Works in this one. Thank you very much!

echonax avatar Apr 16 '22 20:04 echonax