I was thinking of using the UserDefinedFileAttribute class and stuff to do this, but I don't know if what I want is even possible.

Can you store attributes such as Font and text color and stuff inside a .txt file itself?

If another text program that opens the file you made or modified inside such an editor, will it ruin the attributes and set them to null?

(i.e. if I pull this off in a java notepad, if I ever opened the file that had the attributes with some other editor such as Windows Notepad, would the other editor mess with the attributes, hence possibly ruining them?)

The UserDefinedFileAttribute route involves a lot of strange interfaces (ones I don't have a clue what they do) and I'm wondering if I'm going the wrong route.