Highlighting code blocks with highlight.js

On Saturday, April 11th 2020, 7:16:45 pm by Lee Nattress

When the template is built, we include some cdn hosted highlighting library.

Our markdown editor automatically wraps code in the correct html to make it all work.

    <link
      rel="stylesheet"
      href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.1/styles/dracula.min.css"
    />
    <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.1/highlight.min.js"></script>
    <script>hljs.initHighlightingOnLoad();</script>

Beautiful highlighting!

museful code blogging profile image
museful code blogging

museful is a terminal application and web interface that lets developers on a project have more meaningful discussion with anybody interested in the source code than just commit messages.

Recent

Why Museful Exists

Monday, April 13th 2020, 12:42:12 pm

by Lee Nattress

Tidy Up For Releasable Version

Monday, April 13th 2020, 8:00:26 am

by Lee Nattress

What Is Museful?

Sunday, April 12th 2020, 12:26:39 pm

by Lee Nattress

Refactoring

Sunday, April 12th 2020, 8:07:23 am

by Lee Nattress

Npm Package!

Saturday, April 11th 2020, 8:33:48 pm

by Lee Nattress