Sundry Saturdays: Cupper Theme on Hugo, Prism Syntax Highlighting & You
Last updated: 23 Dec 2020 17:26
Why Did My Code Blocks Didn’t Work?
I will spare you the details but every time I attempted to do Syntax Highlighting (i.e. fancying color coding of code based on the language you choose), I would end up getting black on super dark grey.
If you are using the Cupper theme right out the box, the ability to use Prism works but the code syntaxes are slim pickings.
You have to go to Prism’s website and customize it.
- Go to Prism’s Download page
- Pick and choose your options including theme and languages and some add-ons.
- Download the .js file and insert into theme/cupper/static/js/ directory
- Download the .css file and insert into theme/cupper/static/css/ directory
- You will most certainly have to stop and start your Hugo server
Any chance to quote Shatner from The Twilight Zone, YOU TAKE IT!
Commas are like sparkles. They belong on everything.— Rachael Denhollander (@R_Denhollander) July 1, 2020
And I punctuate like I think. So no periods, because my head is a continual run - on analysis that never ends.
Also why I give major props to Tyndale's editing work on my book 😜 https://t.co/ijQ3VbTdTq
There’s something, on the wing. Some. Thing. pic.twitter.com/zWGNdTOn1N— Joseph Louthan (@JosephLouthan) July 1, 2020
June going out with a bang
2020’s not done yet pic.twitter.com/8Fn3QlkYOn— Stans Joshua Lawrence Chamberlain (@porterharlow) June 29, 2020
We told July to sit down and shut up. 2020 is already cray cray.
Apparently, July did not get that memo.
Yep. English is literally dead. https://t.co/hGVXeSNDV7— Merriam-Webster (@MerriamWebster) July 1, 2020
Tiktok is the fifth Horseman
Delete TikTok now. Then put a nail through your phone, burn it, and start a new Apple or Google account. https://t.co/P1276btDi6— ⓉⒸ (@TC_Johnson) June 28, 2020
Nice work if you can get it
I know that I know I would just spend lottery winnings on preaching the gospel until I am dead
Every July 1, the sun rises, the sun sets and Bobby Bonilla gets paid $1,193,248.20.— Don Van Natta Jr. (@DVNJr) July 1, 2020