I've made a plugin called inheritDoc helper for php that basically replaces the tag "@inheritDoc" in comments with the comments block of the parent class.
In order to do that I used folding. However folding does not allow the injected text to contain multiple lines so I have to collapse everything in one line in order to show something.
Ideally I want to replace the text with multiple lines but on click/select it would still collapse and show the original text "@inheritDoc" like the original folding feature.
Does anyone have an idea how to accomplish this?