Skip to content

Code Highlighting with Pygments

DocsForge uses Pygments for build-time syntax highlighting.

Python

def hello_world():
    """Say hello to DocsForge."""
    print("Hello, World!")
    return True

Rust

fn main() {
    println!("Hello from Rust!");
}

Go

package main

import "fmt"

func main() {
    fmt.Println("Hello from Go!")
}

No client-side JavaScript required!