summaryrefslogtreecommitdiff
path: root/blog/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'blog/index.html')
-rw-r--r--blog/index.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/blog/index.html b/blog/index.html
index 97f5921..3c2bb69 100644
--- a/blog/index.html
+++ b/blog/index.html
@@ -40,6 +40,18 @@
</header>
<main class="cards">
+ <div class="card"><h3><a href="/blog/css-only-code-blocks/">Code listings with nice line wrapping and line numbers from plain CSS</a></h3><strong>2025-07-23</strong>
+
+ <div class="summary">
+ <div class="document">
+
+
+<p>Code listings in web pages are often a bit of a pain to use. Usually, they don't wrap on small screens. Also, copy-pasting code from a code listing often copies the line numbers along with the code. Finally, many implementations use heavyweight HTML and/or javascript, making them slow to render. For this blog, I wrote a little CSS hack that renders nice, wrapping code blocks with line continuation markers in plain CSS without any JS.</p>
+</div>
+ <a href="http://jaseg.de/blog/css-only-code-blocks/">Read more</a>
+ </div>
+</div>
+
<div class="card"><h3><a href="/blog/jupyterlab-notebook-file-oneliner/">Getting the .ipynb Notebook File Location From a Running Jupyter Lab Notebook</a></h3><strong>2025-06-29</strong>
<div class="summary">