ADCode

Tree-sitter highlighting

Colours the code by properly reading it, rather than by pattern-matching the words - so the colours are right even in tricky code.

When you would want it

Simple colouring gets confused by things like a keyword inside a string, or nested templates. Real parsing does not get confused.

Where to find it

  • All Features → Tree-sitter highlighting
  • Settings → adcode.language.treeSitterHighlighting

How to use it, step by step

On by default.

  1. It loads the grammar for a language the first time you open a file in it.
  2. If a grammar cannot be loaded, colouring quietly falls back to the simpler method rather than turning off.

Why this beats the usual way

Instead of bundling its own forks of every toolchain, ADCode speaks the standard protocols - LSP for intelligence, DAP for debugging, tree-sitter for highlighting - and uses the servers installed on your machine. You get the same understanding the CLI tools have, one config line for anything unsupported, and no second copy of anything to maintain.

Find it in Universal Search

Tree-sitter highlighting · Languages