MAC don’t handle plain text document very well, and sometimes the codes will display corrupted like your screenshot. There are 3 option for mac users
1) Please refer to Apple’s support to change the setting in TextEdit to allow you to open plain text document: http://support.
2) Use Chrome to open the file. It will display the code inside properly
3) Download http://www.