examples

PyKwiki uses the Markdown module's codehilite extension by default.

This extension is powered by Pygments and supports a wide variety of languages.

No hilighting (text)

Unhilighted:

    :::text
    No "syntax" highlighting here...

Produces:

Unhilighted:

No "syntax" highlighting here...

Python

Sample *Python*:

    :::python
    def foo():
        print("Bar")
        return False

Produces:

Sample Python:

def foo():
    print("Bar")
    return False

INI Configuration files.

Contents of `myconfig.ini`:

    :::ini
    ; Database connection info
    server = localhost
    password = "ASDFG123456"
    db_server = mydb.localhost

Produces:

Contents of myconfig.ini:

; Database connection info
server = localhost
password = "ASDFG123456"
db_server = mydb.localhost