You can use emacs to bold, italic, underline, text. Also, when saving, these will be preserved.
Press 【Alt+o Ctrl+h】 to see complete list of keys.
enriched-mode minor mode, to make emacs save the bold etc text.
You can see the text is still bold.
The file format used is Enriched text format. This is a old format dating to early 1990s.
Here's sample enriched format file.
Content-Type: text/enriched Text-Width: 80 <bold>abc</bold> xyz
The features of the format is pretty minimal. You can bold, slant, underline, color, texts, but that's about it. Emacs's enriched-mode is written originally in 1994.
You can use emacs to show the file's raw content.
Sample enriched file: emacs_enriched_text_sample_file.txt
find-file-literally then give the file path.
Thanks to Jan from Oslo.
I recommend you use org-mode instead if you want persistant highlighting. Because, almost nobody uses the emacs enriched-mode, and the enriched text format is also long dead. Emacs org-mode is widely used, and far more rich.