Code Is an Interface Too
summary
Experience building an IDE-like interactive code and diff viewer in the browser for SourceCraft is described, focusing on the domain challenges of working with source code and a survey of theory around text-only rendering and tooling for syntax highlighting. The talk avoids specific technologies and instead explores the peculiarities of pure text layout and the architecture of tools for code presentation in repository browsers.
AI-written summary · about
chapters (17)
- 0:00Welcome
- 1:24Code as interface
- 3:50In and out
- 5:37Code highlighting tools
- 8:25Code folding problem
- 11:54Tokenizer with metadata
- 14:26Limitations and results
- 16:53Browser search issues
- 19:21GitHub’s search solution
- 21:29Code interactivity
- 25:47Three navigation features
- 27:56Language Server Protocol
- 31:09Token and range issues
- 32:54Canvas vs CSS Custom Highlight API
- 34:59Viewer vs editor differences
- 37:26CodeMirror vs Monaco
- 40:16Unsolved problems








