Hacker News new | past | comments | ask | show | jobs | submit login

Unrelated to the article, but I love the "glow" effect on the code snippets. Any chance this exists as a plugin for VSCode, for when I want to re-live my teenager dreams of what working on computers looks like?





I haven't like, checked the code, but I have seen this glow in websites that used a JS library called prism (or PrismJS).


It is just fuzzy from zooming up screenshots, a by product of the subpixel aliasing.

If it doesn't, you could probably add a post processing filter to https://github.com/wez/wezterm or https://github.com/alacritty/alacritty


GP is talking about the code sections and the "CRT effect" that was added via CSS. Press "Toggle glow" to make it obvious what effect that is.


Yeah, and it's pretty simple. You have essentially three composition layers: original text; a gaussian-blurred zero-offset "shadow" to add glow (CSS text-shadow); and then a pattern of darker horizontal stripes on top, produced with repeating-linear-gradient with an alpha channel.

The magic is basically in https://dmytroengineering.com/css/terminal-syntax.css, but there's a lot of other ways to do it.


My bad, totally wrong.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: