Skip to content
Martin Henz edited this page Jul 1, 2021 · 10 revisions

The editor of the Source Academy is based on Ace. We have built Ace modes for each Source version, which feature:

Implemented in src/editors/ace

  • syntax highlighting: (zijian)
    • keywords: keywords of the current Source version
    • forbidden words: JavaScript keywords that are not keywords of the current Source version
    • pre-declared functions
    • constants
    • comments
    • declarations (function, let, const)

Scope-related tools

The following tools are implemented in src/scope-refactoring.ts

  • linking to documentation of predeclared names, respecting the scope of names
  • navigation from names to their declaration, respecting the scope of names
  • refactoring of names across their scope