From 3ae43c84e768a712fd2d0a8e65f52edd86bfa6a5 Mon Sep 17 00:00:00 2001 From: retoor Date: Mon, 3 Feb 2025 00:07:33 +0100 Subject: [PATCH] Wrapped highlight.css --- src/snek/static/highlight.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/snek/static/highlight.css b/src/snek/static/highlight.css index 8e6fbf1..455fa19 100644 --- a/src/snek/static/highlight.css +++ b/src/snek/static/highlight.css @@ -1,4 +1,6 @@ -pre { line-height: 125%; } +pre { line-height: 125%; white-space: pre-wrap; + word-break: break-word; + overflow-wrap: break-word; } td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }