- download the two files (Add-NASM.sh, NASM.xclangspec)
- Open Add-NASM.sh and change the DVTFOUNDATION_PATH if necessary. You probably do not need to change this if you are on Xcode 7.2.1+
- Make sure Xcode is closed
- Run Add-NASM.sh from the terminal with sudo (I.E. 'sudo Add-NASM.sh')
- Enter your admin password and hit enter
- Open Xcode and notice the 'NASM' entry under "Editor->Syntax Coloring"
Special thanks to araxara for the Objective-J version of this code.