Code Blocks V2

Faithful source selection, syntax colors and a compact code toolbar.

v1.3.0PolyForm-Strict-1.0.01 min read

Code Blocks V2 keeps a continuous source text flow with actual newline characters.

Copying#

Select code and use Ctrl+C or Cmd+C. Line breaks and selected indentation are preserved. Selecting from the middle of a line copies only the selected portion of that line.

Copy code copies the entire original block. Line numbers are not part of the source.

The feature does not alter ChatGPT's editable Run-code editors.

Reading#

  • Wrap toggles visual wrapping without changing the source.
  • Line numbers remain available with wrapping and align with logical source lines.
  • Long blocks automatically fold at the configured threshold. Expand code reveals the full block; a threshold of zero disables automatic folding.
  • Download saves the original source text.

Syntax highlighting is retained only when its reconstructed text matches the source. Otherwise the block falls back to plain text rather than corrupting code.

Guided tour#

Open Help and select Code blocks. The tour highlights the block and its toolbar.

Verification#

Copy a selection containing blank lines, tabs and nested indentation into a plain-text editor. Verify the result before using copied code in a project.

Themes and language badges#

Code panels follow the site's explicit light/dark theme, with a GitHub-like syntax palette. Language badges retain their language-associated colors. Badges are typographic representations, not official logo artwork.

Additional filename labels and conservative content signatures improve detection. New language labels may use an approximate syntax palette or plain text; the original source remains authoritative.

Wrapping and folding in 1.2.4#

Wrapping and line numbers are independent toggles. A wrapped logical line keeps one source line number. The gutter is remeasured when the code viewport resizes.

Long blocks automatically fold according to the configured threshold. A threshold of zero disables this behavior. Copy and download still use the complete source.

Edit this page on GitHub

Search documentation

Jump to any page or section.

AI Core
What you get
Adding a site
Changelog
[0.2.5] - 2026-11-12
[0.2.4] - 2026-11-11
[0.2.3] - 2026-11-10
Code wrapping and Answer Diff update
[0.2.2] - 2026-11-10
[0.2.2] - 2026-11-10
[0.2.1] - 2026-11-10
[0.2.0] - 2026-11-10
Export and reliability
Export and reliability
[0.1.0] - 2026-11-10
Better ChatGPT
Install
Features
Shortcuts
Privacy
Troubleshooting
Built on the shared packages
Development
License
PDF reports
Usage Quota V2
Answer Diff
Send When Ready
Getting started
Usage tracking
Usage Quota V2
Status colours
Next +1, +5 and Full
What Full means
Accuracy
Account scope
Exporting a conversation
PDF workflow
Context packs
Save an excerpt
Assemble a briefing
Use it on another platform
Privacy and limits
Guided tour
Answer diff
Compare revisions
Reuse a baseline
Privacy
Limits
Tutorial
Send when ready
Schedule a message
Safety
Limits
Code Blocks V2
Copying
Reading
Guided tour
Verification
Themes and language badges
Wrapping and folding in 1.2.4
Beautiful PDF reports
Save a report
Report layout
For AI reading
Limitations
Guided tour
Troubleshooting
Code and table fixes in 1.1.2
Quota Insights migration
Architecture
Changelog
[1.3.0] - 2026-11-12
[1.2.5] - 2026-11-11
Added
Changed
Fixed
[1.2.4] - 2026-11-10
Added
Fixed
Documentation
[1.2.2] - 2026-11-10
Changed
Fixed
[1.2.1] - 2026-11-10
Added
Fixed
[1.2.0] - 2026-11-10
Changed
Fixed
[1.1.2] - 2026-11-10
Fixed
[1.1.1] - 2026-11-10
Export and reliability
Export and reliability
Added
Fixed
Documentation
[1.1.0] - 2026-11-10
Added
Fixed
[1.0.0] - 2026-11-10
Better Perplexity
Install
Features
Shortcuts
Community prompts
Privacy
Troubleshooting
Built on the shared core
Development
License
PDF reports
Usage Quota V2
Answer Diff
Send When Ready
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
Estimates and uncertainty
When the numbers look wrong
Updates and alerts
Update checker
Refill alerts
Pace
Usage Quota V2
Status colours
Next +1, +5 and Full
What Full means
Accuracy
Account scope
Message queue
What it protects
The panel
How it sends
Limits
Troubleshooting
Recall
Find a message
Reuse the last message
What is kept
Privacy
Clear it
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
Context packs
Save an excerpt
Assemble a briefing
Use it on another platform
Privacy and limits
Guided tour
Answer diff
Compare revisions
Reuse a baseline
Privacy
Limits
Tutorial
Send when ready
Schedule a message
Safety
Limits
Code Blocks V2
Copying
Reading
Guided tour
Verification
Themes and language badges
Wrapping and folding in 1.2.4
Code blocks and export
Code blocks
Exporting a thread
Citation styles
PDF workflow
Export failures
Beautiful PDF reports
Save a report
Report layout
For AI reading
Limitations
Guided tour
Shortcuts and settings
Default shortcuts
Enter as newline
Command palette
Selection toolbar
Layout
Architecture
@nolly/core
@nolly/ai
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
Quota Insights migration
Changelog
[1.3.0] - 2026-11-12
[1.2.5] - 2026-11-11
Added
Changed
Fixed
[1.2.4] - 2026-11-10
Added
Fixed
Documentation
[1.2.2] - 2026-11-10
Changed
Fixed
[1.2.1] - 2026-11-10
Added
Fixed
[1.2.0] - 2026-11-10
Changed
Fixed
[1.1.2] - 2026-11-10
Fixed
[1.1.1] - 2026-11-10
Export and reliability
Export and reliability
Added
Fixed
Documentation
[1.1.0] - 2026-11-10
Changed
Fixed
[1.0.5] - 2026-11-09
Added
Changed
[1.0.5-hotfix.1] - 2026-11-09
Fixed
[1.0.4] - 2026-11-09
Changed
[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
Keeping scripts updated
Notifications
Changelog
[1.0.4] - 2026-11-12
[1.0.3] - 2026-11-10
Export and reliability
Export and reliability
1.0.2
Added
0.1.1
0.1.0