Mode Runner and composite Modes

Hi,

Already using CodeMirror in an editing environment, I’m trying to take advantage of the Mode Runner addon and use it as a code source highlighter, and I managed to make it work seamlessly unless I’m trying to render source code relying on composite highlighting modes such as php.

OTOH, the Lazy Mode Loading demo shows that the dynamic loading of required sub-modes is a reliable feature.

How could I manage to have the two features working together?

Thanks

Dynamic loading only works if you explicitly call functions from the loadmode addon, not automatically.