| > Why do Go articles so often have no syntax highlighting? Rob Pike, one of the 3 original Go architects, has stated in the past he doesn’t like syntax highlighting [1]. > Syntax highlighting is juvenile. When I was a child, I was taught arithmetic using colored rods (http://en.wikipedia.org/wiki/Cuisenaire_rods). I grew up and today I use monochromatic numerals. — Rob Pike Maybe Sergey Kamardin, the author of this article, is following Rob Pike’s philosophy. That being said, the website has references to a Go library called Chroma [2] which purpose is to colorize source code. The library borrows ideas from a popular JavaScript library called “highlight.js” [3] and that is why you can also see “highlight” CSS classes. The website downloads this CSS file [4] which contains a couple of instructions to make the code look the way it looks. The official Go Blog has popularized this type of design [5] and many Go programmers has adopted it in their own websites. [1] https://groups.google.com/d/msg/golang-nuts/hJHCAaiL0so/kG3B... [2] https://github.com/alecthomas/chroma [3] https://highlightjs.org/ [4] https://gbws.io/scss/syntax.min.css [5] https://blog.golang.org/go-fonts |
When I was a child I had a plush gopher.