Not sure what you're after. For me, the title suggests you want to know if anyone is attempting to view code, which I suppose you could trap with key press events. However, the post body doesn't support that assumption for me.
You're coding in another MS Office program and need to password protect the code? AFAIK, any of those have that capability.
You're coding in the editor for one of those programs, or just using a text editor and want the features of the editor?
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.