5
In orden to write code, you must not have problem using gedit.
Anycase you could try another code editor on Linux: jedit (run on java) and kate; but I suppose that you use gnome, not kde.
But really gedit is a good code editor; I do not understand why you have problem using it.