Getting somewhere understanding that.
TSynEditMarkupHighlightAllMulti is not there by default
so if I add them multiple of class TSynEditMarkupHighlightAllMulti then there are multiple of that class in MarkupManager .
tested:
SynEdit1.MarkupManager.RemoveMarkUp(SynEdit1.MarkupManager.MarkupByClass[TSynEditMarkupHighlightAllMulti]);
Removes one, I guess nobody knows which from list, next execution removes next of that class.
When there is no more markups of class TSynEditMarkupHighlightAllMulti, the upper code throws no error.
How to tell if there are no markups of class TSynEditMarkupHighlightAllMulti in markupmanager.
Can't find anything to find that out.
Probably loop thru all markups in markupmanager, checking class ...
But I hope there is some count by class somewhere ?