Code Highlighting in Blog CMS

Hi everyone,

I have some code that I want to highlight in my blog post. How can I do that?

Thanks!

Check out Finsweet’s Code Highlight solution. Super easy to implement.
https://finsweet.com/attributes/code-highlight

I like to store the code in Gists, it’s much easier to update and manage.
However the look I currently have has line numbers and a specific coloring theme.

image

If that matches what you’re looking for, here’s the lib;

You’d add this attribute to your rich text blocks.

wfu-gist-theme="midnight"

1 Like