Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

personally, the golang highlighting is nice.

- dark blue: keywords (var, nil)

- light blue: variables (defines the scope you're looking at)

- blue-green: types (bool, string, your custom thing, the kind of the variables)

- dark green: comments

- yellow: functions/methods (jumping to another section)

- orange: strings (not variables, so static things here!)

- if/braces/parens/select/switch/defer/go: purple (control logic)



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

Search: