I want to export some data from a database. I can do so in plain text. However, I would like to add formatting tags. Afterwards I want to be able to open the files in Microsoft Word.
Of course, I could use html-formatting and save the file as a .docx file. I was wondering though, if there is a better way to do this.
I aim at a few simple formatting types: bold, italics, font size change and font change.