CSS numbered code listings
10th July 2002
I’ve been experimenting with using CSS and <ol> tags to format code listings, complete with line numbering. Here’s what I’ve got so far: Numbered Code Listing Experiment.
More recent articles
- Lenny's Podcast: Coding is solved—now what do we do? - 29th November 2026
- Code-driven AI illustrations are more useful than images from dedicated image models - 28th November 2026
- Three LLM inflection points in twelve months - 24th November 2026
- Ladybird's first alpha release - 23rd November 2026