Improve Fluent source editor with syntax highlighting, error annotations
This issue was created automatically by a script.
Bug 1581911
Bug Reporter: @mathjazz CC: @stasm, [email protected]
As part of fixing bug 1563457 we replaced Ace Editor with <textarea> element in order to support all scripts properly.
While that fixed the bug, it also removed syntax highlighting and error annotations from Fluent source editor.
We should find a solution similar to Ace Editor, that will support:
- All scripts.
- Fluent syntax highlighting.
- Fluent error annotations.
- (If possible) browser's spell- and grammar checkers (bug 1556355).
Comment Author: @mathjazz
A potential candidate with support for varying character widths is https://codemirror.net/.
Comment Author: Florencia Di Ciocco, NI to vbalducci <[email protected]>
*** Bug #1586556 has been marked as a duplicate of this bug. ***
Comment Author: @stasm
Another candidate to consider might be Monaco, which powers VS Code: https://microsoft.github.io/monaco-editor/index.html
Not actually completely solved yet.
To make it clear, the remaining bit are inline Fluent error annotations.
If possible, we should also spell-check content only (and ignore syntax).