I use plain Markdown code fence with programming language perl specified.
Please see: the Markdown cheatsheet as pointed to by the editor guide on dev.to
I cannot demonstrate it here, but I wrote up a TIL on how to do it for GitHub flavoured Markdown
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.