jEdit is a free and multi-platform software for editing. It permits to easily edit text files and programming codes. It supplies several functionalities, which make a powerful tool. For the edition of scientific texts, we recommend the use of LaTeX. There are numerous distributions (free), and powerful editors:
TexLive distribution for Mac.
MikTex distribution for Windows.