6 ms·
Show HN: A JavaScript syntax highlighter in 40 lines of JavaScript
- atum47 6y agoHi everyone, I was thinking about starting a blog sharing some code and end up creating this very simple syntax highlighter. It can be changed to work with other languages by changing the reserved word, methods and rules. Target each element with CSS to change colors and font-style. Hope you like it.