Can't edit text files in /Applications folder
I was able to modify the /Applications/Mail.app/Contents/Resources/Message.css file in Yosemite but El Capitan won't let me do it. I am the only user on this computer and I am the Admin. I have tried sudo vi and sudo nano in Terminal but none of them worked. Terminal shows an error message when attempting to modify the file saying "Operation not permitted."
TextWrangler and Sublime Text didn't open the file with write permission as well.
I checked out the permission settings in Finder > Get Info but settings are greyed out. Chmod is currently 644 and the Resources folder is 755.
I also made sure that Mail app was closed (completely Quit) while attempting to modify file.
Please help.