I'm working on a no-code app; ideally, users should be able to write text using both templating and rich text editing:
Templating:
Users can type {{
and write an expression that will evaluate to some string at runtime.
Rich text editing:
Users can select some text, a toolbar appears and they can set the text to bold, italic, change its color, etc.
Problem:
If we combine both, how could one define the styles of a template expression?
Ideas:
- Style the template expression itself, even though it's not the runtime result.
But a template expression is code, so it has syntax highlighting. That means we should override syntax highlighting? It seems weird.
I couldn't find a satisfying idea, do you have any? Thanks!