I am using the following code to insert colored text into an Emacs buffer.
(insert
(propertize "green"
'font-lock-face
'(:strike-through t
:foreground "green"
:background "blue")))
How can I have Emacs save these text properties so that when I reopen the buffer they are available?
Edit: I am attempting to do this with a .el file and would like to save any text properties not just font properties. It would be nice if there was a way to do this for any type of file.