Convert your technical documentation to PDF with beautiful syntax-highlighted code blocks. Support for 190+ programming languages, all rendered in your browser.
Code blocks with syntax highlighting — rendered live.
## Python Example
```python
def fibonacci(n: int) -> list[int]:
"""Generate Fibonacci sequence."""
seq = [0, 1]
for i in range(2, n):
seq.append(seq[i-1] + seq[i-2])
return seq[:n]
print(fibonacci(10))
```
## JavaScript Example
```javascript
const fetchData = async (url) => {
const res = await fetch(url);
if (!res.ok) throw new Error(res.statusText);
return res.json();
};
```def fibonacci(n: int) -> list[int]:
"""Generate Fibonacci sequence."""
seq = [0, 1]
for i in range(2, n):
seq.append(seq[i-1] + seq[i-2])
return seq[:n]
print(fibonacci(10))
const fetchData = async (url) => {
const res = await fetch(url);
if (!res.ok) throw new Error(res.statusText);
return res.json();
};
Write standard fenced code blocks with a language identifier. MarkdownToPDF automatically highlights your code.
Write this in the editor:
```python
def fibonacci(n):
if n <= 1:
return n
return fibonacci(n-1) + fibonacci(n-2)
```The preview and PDF will show your code with proper keyword highlighting, string coloring, and comment styling.
Powered by highlight.js via rehype-highlight, your code gets accurate tokenization and coloring for keywords, strings, comments, functions, and more.
Syntax highlighting colors are embedded in the PDF output using inline styles. Your code looks just as good on paper as it does on screen.
Use standard markdown fenced code blocks with language identifiers (```python, ```typescript, etc.) for automatic language detection.
All highlighting happens in your browser. Your proprietary code, API keys in examples, and internal documentation stay completely private.
Here are some of the most popular languages we support. If highlight.js supports it, MarkdownToPDF renders it.
API references, SDK guides, and integration docs with properly formatted code examples.
Step-by-step coding tutorials with syntax-highlighted examples that look professional in print.
Export code snippets for offline review, pair programming prep, or architecture discussions.
Paste your Markdown with code blocks and see beautiful syntax highlighting instantly.
Start ConvertingBuilt by Yogendra Singh