Export & print
Turn code or a Markdown document into a clean PDF, HTML, Word or ODF file, or print it after a page-by-page preview. Output is always light-themed.
Share your work in the format the reader wants: a highlighted PDF of your code, or a Markdown document as a polished PDF, web page, Word or ODF file, always light-themed and readable on paper.
Export code
- Syntax-highlighted PDF of the current file, with line numbers if you want them: File: Export to PDF….
- Only the lines you need: File: Export Selection to PDF… and File: Print Selection… output the selected lines, numbered as in the file.
Export documents
- PDF from the Markdown or Mermaid preview, with headings, lists, tables, code blocks, math, images and coloured GitHub alerts drawn as sharp vector text.
- Self-contained HTML with images embedded and code highlighted, following the reader’s light or dark preference.
- Word (
.docx) and OpenDocument (.odt), with tables, code, math, Mermaid diagrams and images. - Long documents paginate well: a heading stays with what follows it, and a table split across pages repeats its header row.
- Ready to navigate: exported PDFs have clickable links, bookmarks from the headings, and a page footer.
- Preview first. File: Print…, in the palette or
Ctrl+Pin the CUA keymap (Cmd+Pon macOS), opens a page-by-page preview at paper size, with zoom, Page Setup and keyboard paging. What you preview is what prints. - More than text. Image tabs, data previews and the whole Project Map print and export too.
Find both under the File menu, with the export formats under File ▸ Export, and in the tab and editor right-click menus. Page size, margins, code font size and the footer are set in Settings → Editor → Export & Print.
See the Print and PDF guide.