Syntax Highlighting - PowerShell Code Snippets

Hi!

New to Ghost, my colleague recommended it as I have been documenting my PowerShell scripts on an internal SharePoint site.

The best thing I’ve found about SharePoint is it’s Code Snippet webpart. When I found that Ghost allowed you to inject CSS and use the Prism library, I knew it’d be a game changer.

I followed the below:
A complete guide to code snippets (ghost.org)

When I create a new code block/snippet, defining the language as PowerShell, there is no syntax highlighting - does it not work for PowerShell?

When you download Prism, have you selected PowerShell in “Languages”, the default selected languages don’t include “PowerShell”

Hi Raki,
Thanks for responding.

I was following the CSS Injection part which didn’t mention any requirement to download Prism - is this still required? I should have specified, apologies.

Huh, maybe it just didn’t update right away.

This is now working, apologies.