History file is working with attributed text now.
Final version I think