Serialize editor state?


Neither or have a serialize class. Is there someway to get the entire state of an editor in order to serialize it and restore it later? I mean things like scroll position, cursor, selections, markers, etc. The deserializer can assume the same buffer text when it is restored.

I can do this the hard way by serializing everything myself but I was hoping there was an easy way.