I’m working on a program that makes new text files with python and I was wondering if it’s possible to do some trivial text formatting when writing to a .txt file with python. For example, I’d like to underline some words and in some cases, use bold text.
Share
.txtfiles do not have formatting. You would have to use HTML or some other format of rich text/markup.Example of HTML: