Closed Bug 1581911 Opened 5 years ago Closed 3 years ago

[FTL] Improve Fluent source editor with syntax highlighting, error annotations

Categories

(Webtools Graveyard :: Pontoon, enhancement, P3)

enhancement

Tracking

(Not tracked)

RESOLVED MOVED

People

(Reporter: mathjazz, Unassigned)

Details

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:

  1. All scripts.
  2. Fluent syntax highlighting.
  3. Fluent error annotations.
  4. (If possible) browser's spell- and grammar checkers (bug 1556355).

A potential candidate with support for varying character widths is https://codemirror.net/.

Another candidate to consider might be Monaco, which powers VS Code: https://microsoft.github.io/monaco-editor/index.html

*This bug has been moved to GitHub.*

*Please check it out on https://github.com/mozilla/pontoon/issues.*
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → MOVED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.