| I generally agree that the web could be simpler. A lot can be accomplished with just plain ol' HTML/CSS nowadays. I think there's a kernel of truth in what you're saying about apps vs. websites. That said, how would you propose to do syntax highlighting instead of > just a wall of <div>s and <span>s, for every single visible character ? Rather than being a wall, it looks to me like it's actually a tree of <divs> and <span>s for every line and every _token_. I think the author has used Prism[1], so I assume the highlighting was done client-side, but even if you were to do the task server-side I think you'd end up with similar HTML/CSS, no? What would be a better approach to solving the same problem? [1]: https://prismjs.com/ |