[COMPASS-4161] MongoDB.tmLanguage: Single source of truth for syntax highlighting Created: 24/Feb/20  Updated: 30/Jun/22  Resolved: 30/Jun/22

Status: Closed
Project: Compass
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Investigation Priority: Major - P3
Reporter: Lucas Hrabovsky (Inactive) Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
Related

 Description   
  • In VSCODE-23, we're taking the fast path. In the future, let's work out a unified solution for VSCODE, MONGOSH, and COMPASS. Notes/ideas below.

Notes

VS Code
Ace Editor

node ace/tool/tmlanguage.js MongoDB.tmLanguage

highlight.js
mongosh highlighting
Output

repl uses util.inspect() which 1. can be customized 2. replace util.inspect() entirely via the writer option with something like cli-highlight or emphasize

Input

trickier... but possible.

(HT @max for links)


Generated at Wed Feb 07 22:35:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.