I don't know how they save documents with rich text content...for the update command , it doesn't tell much ..it contains some paramters.

when i type \n within the text , it shows up as "\n" so it's not interpreted as newline.
I want it to show the output text as i entered it with tabs whitespaces and newlines..etc

Maybe i need to serialize the whole content and save it !