An article with PHP code and Prism.js highlighting
A simple example and description on how to use and improve code in Ghost CMS with Prismjs.
Here we go, this is the guide:
A complete guide to code snippets
Developers write code. Some developers write about writing code. But when they try to share that code on the web, everything that makes code more readable – like formatting and syntax highlighting – is gone!

And finally, this is my wonderful test code:
<?php declare(strict_types=1);
namespace Ghost;
class ColorfulGhost
{
private string $name = 'Coli';
private function withName(string $name): self
{
$this->name = $name;
return $this;
}
}
Comments ()