Styling Code Blocks

This plugin converts Help Scout Docs’ code blocks to native WordPress code blocks to allow for syntax highlighting by a 3rd party plugin.

On this site, I use Syntax-highlighting Code Block by Weston Ruter, and as you can see in the below example, my theme’s rather boring simple code block layout is replaced with a prettier alternative:

function cool_message() {
    $message = "Hi! This code block is converted by WP Help Scout Docs to support syntax highlighting. Cool huh?";

    return $message;
}

echo cool_message();
Code language: PHP (php)