Hi CM community & dev - first of all; a massive thanks for this awesome project! Been using it for years and it works wonderfully.
Now, I have a dream, which might be too ambitious - and I invite anyone & give permission to shoot it down
The dream;
Weâd love for our users to be able to include âsnippetsâ into their code - so putting {snippet id=123}
would later, in our backend, be replaced with the actual code of that snippet - this works, but weâd like to wrap it and make it pretty. This is where the wished customization entersâŚ
The idea was, to turn {snippet (...)}
into some pretty intractable HTML, that is inside the editor, while keeping the value, but simply displaying it differently.
I have made a little illustration - imagine the âHTML stuffâ card is the visual representation of {snippet (...)}
And the expanded version;
* (little artistic mistake; the âHTML stuffâ should have the line number â2â)
Is this obtainable?
I of course donât except anyone to provide a code snippet for exactly this, but before throwing too many resources into the project, I wanted to hear if anyone else has done something similar with CodeMirror, and would perhaps share some examples of showing a line as something completely else?
The documentation of this project is awesome, but I must admit it has me a bit confused, and it might be out of my area of expertise - this question doesnât come from a lack of trying
Thanks for reading!