echohl commands are very useful for outputting lines of text with multiple highlight groups within the same line. This can be used to for instance create nice status messages for plugins.
In a plugin I am working on, I am using this exact method of outputting colored status messages. However, sometimes I would want to add these messages to the
message-history in a similar way to what you get with
echomsg. Is this somehow possible? I don't believe there are any intrinsic functionality for this, but perhaps one could add the functionality with vim script?