Claude: soft-wrap long code lines
Wraps long code lines so the whole snippet is visible without horizontal scrolling.
Code to copy
// Toggle soft-wrap on long code lines
(function () {
var id = 'jz-claude-wrap';
var el = document.getElementById(id);
if (el) { el.remove(); return; }
var s = document.createElement('style');
s.id = id;
s.textContent = 'pre code,.code-block__code code{white-space:pre-wrap!important;' +
'word-break:break-word!important;overflow-wrap:anywhere!important;}';
document.head.appendChild(s);
})();
How to use this example
- Copy the code with the button above.
- Install JustZix (2 minutes) and open the extension on the target page.
- Add a new rule matching that page.
- Paste the code into the rule's JavaScript panel and save — it runs on every page visit.
Rate this example
No ratings yet — be the first.