miniblog.

← Back to all posts
14
I've been playing with labels on my code blocks. Sometimes I have useful labels, other times it's just "Example 2". It's also unclear exactly where I put the label: Inside the box? Outside? Are there any docs sites that do this really well?
PhotoPhoto

4 Comments

@wilfredh When inside the block it interferes with my code reading. And sorry, not sorry, but anything that uses foo/bar/baz to me (Dutch) instantly makes readability take a firm step towards long regexes.
@wilfredh On a border (= But you'd have to play on it somehow. Maybe it could be done in more ways, but rn the block design is almost locked down by the paper-and-shadow visual metaphor. Maybe you can find something more flexible so you can enjoy more decision freedom later.
@wilfredh This looks nice. But I love this border ---[ style ]--- in general (= You may want to add a bit more padding-top so the code wouldn't touch the label on narrow screens like on the pic here. It's fine on the wider though.