gedit is a cross-platform, syntax-highlighting text editor.
To write your code in! Word is a fine program, but it is not a text editor.
Gedit is probably installed on your machine already.
After installing, start gedit up by clicking on its icon, typing gedit from your cli or the like.
Suggested configuration:
In the preferences window
view, turn on:
- display line numbers
- display right margin
- highlight matching bracket
- highlight current line
- syntax-highlighting: Highlight Mode -> Scripts -> Python
editor:
- change tab with to 4
- check the box to insert spaces instead of tabs
font & colors:
- choose a good monospace editor font
- choose a color scheme (Gregg likes Cobalt)
plugins
- checkupdate
- code comment
- drawspaces
- filebrowser
- indentlines
- python console
Once you are satified, restart gedit. If it looks similar to the screenshot below, you are done!