Code blocks and export

Better code blocks with language badges, and exporting threads as Markdown, Word, PDF or plain text.

v1.0.3PolyForm-Strict-1.0.01 min read

Code blocks#

When an answer finishes, its code blocks are replaced with an improved version:

  • A language badge, detected from the label, the filename, the shebang or the code itself.
  • Built-in syntax colours, line numbers, wrapping and folding for long code.
  • Copy and download buttons. Selecting part of a block and copying keeps the indentation and line breaks exactly.

Configure it from the menu: Configure Code Block Pro.

Exporting a thread#

Open a conversation and click the download button in the header.

FormatNotes
MarkdownCleaned and formatted, with a title and export date
Plain textUnderlined headings, indented code, links written as label (url)
Word (.docx)Real headings, lists, tables, quotes and clickable links
PDFGenerated in your browser with selectable text and page numbers
Raw JSONThe thread data, as a fallback

Citation styles#

Choose how sources appear: parenthesized links, inline links, domain names, a numbered Sources list, Markdown footnotes, or none.

Edit this page on GitHub

Search documentation

Jump to any page or section.

Better Perplexity
Install
Features
Shortcuts
Community prompts
Privacy
Troubleshooting
Built on the shared core
Development
License
Getting started
Install
Take the tour
Where things are
Turn modules on and off
Usage tracking
What the badge shows
Which mode is shown
Refill estimates
Refill estimates
When the numbers look wrong
Long messages
The size meter
Big messages
Sending in parts
Attaching as a file
Accuracy
Prompts and batches
Prompt library
Placeholders
Community prompts
Batch Runner
Code blocks and export
Code blocks
Exporting a thread
Citation styles
Shortcuts and settings
Default shortcuts
Enter as newline
Command palette
Selection toolbar
Layout
Architecture
What the core provides
What stays in Better Perplexity
Compatibility
Building from source
Troubleshooting
A button is missing
Usage shows free-tier numbers
My draft disappeared
Export fails
Updates do not arrive
The build cannot find @nolly/core
Reporting a bug
Changelog
[1.0.3] - 2026-11-09
Fixed
Changed
[1.0.2] - 2026-11-09
Changed
[1.0.1] - 2026-11-09
Changed
Fixed
[1.0.0] - 2026-11-08
Added
Community prompts
Suggest a prompt
Userscript Core
What you get
Quick start
Getting started
Scaffold
A feature
Wire it up
Cleanup
API reference
Runtime
Feature
Utilities
Build
Build and release
Changelog
0.1.1
0.1.0