DEV Community

Discussion on: Your experience with embedded JS code snippets

Collapse
 
orkon profile image
Alex Rudenko

Have you considered using highlightjs.org/ for your website? It worked quite well for me (and it's easy to combine with Markdown). But I didn't need to execute code snippets and display the results. If you need that, I guess something like JsFiddle or CodePen is the way to go.

Collapse
 
drakso profile image
Drakso

This is a great alternative Alex. Executing code snippets really saves me time by showing an interactive version of the utility I am trying to present, instead of me coding an interactive example. Even tho this library does not support that feature, I really like that it would make the site load almost instantly. I could probably code some of the examples by hand if I really want users to interact with the example. Thanks :)