I\'m using Emacs for writing my XeLaTeX documents.
The formatting and indentation in Emacs is virtual so it is easier for the eyes but in the saved file ever