You can install the prism plugin right now the same way that I do. Go to Design -> Edit Custom Themes -> New Plugin
Name it whatever you like and stick the repository address in
https://github.com/moonbuck/plugin-prism. The plugin will be cloned in the exact same manner as through the registered list of plugins.
I believe the README is up to date for the current version. Regardless, it's what I use for all the syntax highlighting so holler if you end up with questions: the blog post README version
@matti I created a shortcode for syntax highlighting shortcodes. I use it for the opening braces and less than … same thing oughta work for just the braces. I have gotten around a lot of quirks bit new ones are always popping up. So far I've figured out how to highlight anything I've thrown at it … but I don't always remember how I did it. The shortcode post
@matti It's funny. Trying to get the Hugo in all the READMEs to render was a b$tch. I just remembered that some double curlies would be cool and others would totally break. Not sure if I figured that one out or decided I didn't need to show the partial. This was before I figured out the shortcode hack. Thst probably would have solved it.
@matti @moondeer We could monkey patch the built-in highlight shortcode to play better with Micro.blog. As an interim solution until @manton updates Hugo to a newer version. I have a plug-in working with decent results on the default theme.
Feel free to install and play around with Highlight Monkey. 🙈
@sod @manton @matti I've head great success with mine as well (just gotta jump through some hoops when the code is Hugo code): plugin-prism. It also loads various prism plugins (so you can have a code copy button, for example).
You can see it in action via the walkthrough I've been working on.
You can find a bunch more by entering README into my site's search box.
@Moondeer Yeah, I stumbled upon your plug-in; it's awesome and way more polished than my approach. Mine is mostly a proof of concept. Nevertheless, I thought it worthwhile to experiment with monkey patching the built-in
highlight shortcode for two reasons.
But, with @manton rolling out changes today, my plug-in will probably soon be obsolete.