Syntax highlighting with the code slice

So Im followng this tutorial on creating documentation with prismic

and have got it working, but Im not getting any syntax highlighting or formatting for code snippets


What is the standard way to do this?

Hi Mohammad,

The guide you followed is only for the content modelling side on Prismic for your code snippets. You will still need to configure the styling on your frontend side in whatever technology you are using. The easiest way to do this is to use a code styling library like or .

This thread shows how a user did this in Gatsby


1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.