Codeblock Rules
Complete guide to styling and customizing codeblocks in the PKB theme
This guide covers all the ways you can style and customize codeblocks in the PKB theme, from basic syntax highlighting to advanced features like line numbers and copy buttons.
Basic Syntax Highlighting The theme supports syntax highlighting for numerous programming languages. Simply specify the language after the opening triple backticks:
function greet(name) { console.log(`Hello, ${name}!`); } def fibonacci(n): if n <= 1: return n return fibonacci(n-1) + fibonacci(n-2) package main import "fmt" func main() { fmt.