Skip to content

Conversation

@0xDAEF0F
Copy link
Contributor

Summary

  • Syntax highlighting now works automatically for JSON, Python, Go, Rust, Java, C, C++, C#, HTML, CSS, PHP, Bash, Ruby, TOML, Kotlin, Swift, Elixir, Zig, and OCaml
  • Parsers download from jsdelivr CDN, queries from GitHub on demand
  • Cached in IndexedDB for offline use
  • WASM validation prevents corrupt cache entries

Test plan

  • Open files of various languages and verify syntax highlighting works
  • Clear IndexedDB and verify parsers re-download correctly
  • Verify TypeScript/JavaScript still work (bundled locally)

Syntax highlighting now works automatically via CDN for: JSON, Python, Go, Rust, Java, C, C++, C#, HTML, CSS, PHP, Bash, Ruby, TOML, Kotlin, Swift, Elixir, Zig, and OCaml.

- Add parser-cdn.ts with version-pinned CDN configs
- Download WASM parsers from jsdelivr, queries from GitHub on demand
- Cache to IndexedDB for offline use
- Add WASM magic number validation to prevent corrupt cache entries
- Remove bundled Rust extension (now CDN-based)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants