3 ms·
The first code-to-assembly highlighting example here is beautiful. Question to the authors— is that custom just for this article? Is there an open source CSS l
by throwoutway 5y ago
The first code-to-assembly highlighting example here is beautiful. Question to the authors— is that custom just for this article?
Is there an open source CSS library or something that does this?
- tanoku 5y agoHey, author here. Thanks for the kind words! This is a custom pipeline that I designed for the article. It's implemented as a Node.js library using SVG.js and it statically generates the interactive SVGs directly in the static site generator I was using (Eleventy) by calling out to the Go compiler and extracting assembly for any lines you mark as interesting. It turned out very handy for iterating, but it's not particularly reusable I'm afraid!