Imprint | Privacy Policy

Source blocks without highlightjs

Jens Lechtenbörger

Created: 2024-04-21 Sun 07:18

1. Source blocks without language

1.1. No fragments, default class example

Some text
without language

1.2. No fragments, use of attr_html

(See HTML code for someClass)

Some text
without language

1.3. Multiple source blocks with given order

Some text
without language

2. Source blocks with language

2.1. Python code without fragments, with ID and caption

def factorial(n):
    if n < 2:
        return 1
    else:
        return n * factorial(n - 1)

print(factorial(10))

2.2. Multiple source blocks with given order

def factorial(n):
    if n < 2:
        return 1
    else:
        return n * factorial(n - 1)
print(factorial(10))