Closed twschiller closed 9 months ago
Is this a direct solution to https://github.com/pixiebrix/pixiebrix-extension/issues/1022? i.e. is it to provide highlighting? Because it looks more like a full text editor than a simple syntax highlighter.
For the record, it seems to weigh about 110Kb
This issue will be closed in 7 days unless the stale label is removed, or a comment is added to the issue.
Context
Implementation Sketch
Requirements
Must Have
Nice to Have
{{
show autocompleteAssumptions
For the POC, you don't have to formally parse the text for Mustache/Template expressions. You can use regexes and grab the index
You can assume:
In practice, this input be generated by merging to together provided/inferred JSON Schemas. For example:
References/Related
1022
1020, future work on UX for providing expressions for non-strings
FAQs
Currently we have either a normal text or textarea import. These aren't just used for HTML templates, they're more generally used to wire up inputs to a brick
The main focus is handling the dynamic content tokens
We won't be using any the rich formatting (e.g., bolding, etc.). (In the future, we might use the for markdown-formatted inputs, though (see #404)
The output format for the editor should be plain text.
If we go this route, we'll async load it into the devtools pane. It shouldn't be a performance problem in practice
We also want to test the experience for content tokens that show additional context information on hover