Jump to content

How to make your code blocks look nice on Squarespace (AKA add syntax highlighting)

Recommended Posts

Posted (edited)

Hey all,

Sometimes you need to put code blocks onto your Squarespace site.

The problem is that by default, code blocks on Squarespace look very plain and don't give the best reading experience for your users.

The solution is to add syntax highlighting, so your code blocks go from this

image.thumb.png.b667cafb7991930459b18d4f2ce2e719.png

to this:

image.thumb.png.e03170ac3dfa306497fc7d49db27e597.png

When I wanted to do this I had to spend a few hours figuring out exactly how to get it to work, so I wrote a blog post describing how to do this in 2 minutes. Hope it's helpful!

https://www.squarify.xyz/secrets-to-squarespace/how-to-make-code-blocks-look-nice-on-your-squarespace-website?utm_source=forum

Edited by John_Squarify

I make premium Squarespace plugins and give them away for FREE at https://squarify.xyz .

🛒 Peekaboo Side Cart Plugin

🎬 Video Lightbox Plugin

🌗 Dark Mode Toggle Plugin

🤯 Why Free?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.