Code
Styles
Basic
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0">
<title>Greeting</title>
</head>
<body >
Hello World!
</body>
</html>
```html
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0">
<title>Greeting</title>
</head>
<body >
Hello World!
</body>
</html>
```
Code Block
20def greet(target: str = "World"):
21 if not target:
22 raise ValueError("target")
23
24 print(f"Hello {target}")
```{code-block}
---
lineno-start: 20
emphasize-lines: 2,3
dedent: 4
---
def greet(target: str = "World"):
if not target:
raise ValueError("target")
print(f"Hello {target}")
```
Literal include
"""
I can haz job plz?
"""
def main() -> None:
"""
Entry point
"""
for i in range(1, 100):
if i % 3 == 0 and i % 5 == 0:
print("FizzBuzz")
elif i % 3 == 0:
print("Fizz")
elif i % 5 == 0:
print("Buzz")
else:
print(str(i))
if __name__ == "__main__":
main()
```{literalinclude} ./examples/fizzbuzz.py
---
language: python
emphasize-lines: 11-22
---
```