To edit files as root, open a terminal and use su to get root access, then launch your favorite editor to edit the file.
eg.
Code:
me@linux# su
Password: <type the password, you won't see anything>
root@linux# nano /some/file
A few editors:
- Kate
- Kwrite
- gedit
- emacs
- nano
- vi
- vim
- pico
- joe
- more...
My favorite is emacs, many people like vi, the simplest are nano and pico.