Program will not accept input code

The display for entering code is gray and will not allow me to input instructions. Have deleted the program and downloaded it several times with the same result. The screen is gray and will not accept any code. Program was working and then went into this new mode. Any suggestions for allowing the program to accept new code. Program acts as if it is in a read only mode.
Using a mega2560 board.

Might be that you have somehow elected to use an external editor.

File> Preferences> untick Use External Editor

thanks, problem fixed, don't know how I ticked external editor but you saved the day.