3 ms·
Is that ruby code? I don't see any drawn boxes, just syntax-highlighted code?
by nuancebydefault 4y ago
Is that ruby code?
I don't see any drawn boxes, just syntax-highlighted code?
- vidarh 4y agoIt's the Ruby source of the editor the screenshot is of. There's no full box there, but the border between the line numbers and the main area uses this "method" of using one of the characters with blocks along the edges to create a border with one colour between two different coloured regions, using U+258B (Left Five Eights Block). I took my inspiration from that from my C64 days. This is a decades old method.
- nuancebydefault 4y agoAh cool. It took me a while to understand. So the problem it solves is: you can start a new colour without being constrained to the grid of the fixed-width characters. That way you can save a bit of space.
- vidarh 4y agoYeah, and get neater borders/shading etc. I realised too late that it's hard to see the border on imgur, here's one using a different theme which makes it a lot easier to see the transition: https://imgur.com/a/fO7WVc1 https://imgur.com/a/fO7WVc1
- nuancebydefault 4y agoOn a tangent... I'm so happy that at my current job I don't need to read/write ruby... I never got used to its peculiarities.
- vidarh 4y agoHah, we're very different there - I love Ruby, it's the most user friendly Smalltalk I've found.