I can't figure how to make VB code look like VB code in these posts, ie the comments in green and so on

Please can someone elucidate please?