is there a way to program by wrighting lines of code in EasyC insted of the normal block proraming?

easyC Pro (PIC) and easyC 4 (Cortex) both support hand-coding. (I haven’t tried it, but that’s what they tell me.)

If you are interested in using actual code, you might want to think about ROBOTC.