Skip to content

Add automatic syntax highlighting for TopoJSON files#53546

Merged
probably-neb merged 1 commit intozed-industries:mainfrom
jnsprnw:topojson
Apr 13, 2026
Merged

Add automatic syntax highlighting for TopoJSON files#53546
probably-neb merged 1 commit intozed-industries:mainfrom
jnsprnw:topojson

Conversation

@jnsprnw
Copy link
Copy Markdown
Contributor

@jnsprnw jnsprnw commented Apr 9, 2026

TopoJSON is an extension of the geospatial data interchange format, GeoJSON. Although it is not as widely popular, it is frequently used in web maps, where its smaller file size is advantageous.

More information about TopoJSON can be found here: https://github.com/topojson/topojson-specification

This change adds topojson as a recognised path suffix, so TopoJSON files automatically open as JSON and get the standard JSON syntax highlighting.

This PR is similar to @flother’s PR for GeoJSON: #49261

Closes (my own) discussion: #32963

PS: This is my first PR. I'd appreciate any feedback or suggestions for improvement

Self-Review Checklist:

  • I've reviewed my own diff for quality, security, and reliability
  • Unsafe blocks (if any) have justifying comments
  • The content is consistent with the UI/UX checklist
  • Tests cover the new/changed behavior
  • Performance impact has been considered and is acceptable

Release notes:

  • Added automatic syntax highlighting for TopoJSON files
TopoJSON is an extension of the geospatial data interchange format, GeoJSON. Although it is not as widely popular, it is frequently used in web maps, where its smaller file size is advantageous.

More information about TopoJSON can be found here: https://github.com/topojson/topojson-specification

This change adds `topojson` as a recognised path suffix, so TopoJSON files automatically open as JSON and get the standard JSON syntax highlighting.

Release notes:

- Automatic syntax highlighting added for TopoJSON files
@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented Apr 9, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @jnsprnw on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@zed-community-bot zed-community-bot Bot added the first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions label Apr 9, 2026
@zed-codeowner-coordinator zed-codeowner-coordinator Bot requested review from a team, MrSubidubi and probably-neb and removed request for a team April 9, 2026 19:26
@jnsprnw
Copy link
Copy Markdown
Contributor Author

jnsprnw commented Apr 9, 2026

@cla-bot check

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Apr 9, 2026
@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented Apr 9, 2026

The cla-bot has been summoned, and re-checked this pull request!

@probably-neb probably-neb enabled auto-merge (squash) April 13, 2026 16:26
@zed-industries-bot
Copy link
Copy Markdown
Contributor

Warnings
⚠️

This PR is missing release notes.

Please add a "Release Notes" section that describes the change:

Release Notes:

- Added/Fixed/Improved ...

If your change is not user-facing, you can use "N/A" for the entry:

Release Notes:

- N/A

Generated by 🚫 dangerJS against eaa59e5

1 similar comment
@zed-industries-bot
Copy link
Copy Markdown
Contributor

Warnings
⚠️

This PR is missing release notes.

Please add a "Release Notes" section that describes the change:

Release Notes:

- Added/Fixed/Improved ...

If your change is not user-facing, you can use "N/A" for the entry:

Release Notes:

- N/A

Generated by 🚫 dangerJS against eaa59e5

@probably-neb probably-neb merged commit b1f8bd6 into zed-industries:main Apr 13, 2026
61 of 63 checks passed
@probably-neb
Copy link
Copy Markdown
Collaborator

Thanks!

@jnsprnw jnsprnw deleted the topojson branch April 13, 2026 18:58
piper-of-dawn pushed a commit to piper-of-dawn/zed that referenced this pull request Apr 25, 2026
…53546)

TopoJSON is an extension of the geospatial data interchange format,
GeoJSON. Although it is not as widely popular, it is frequently used in
web maps, where its smaller file size is advantageous.

More information about TopoJSON can be found here:
https://github.com/topojson/topojson-specification

This change adds `topojson` as a recognised path suffix, so TopoJSON
files automatically open as JSON and get the standard JSON syntax
highlighting.

This PR is similar to @flother’s PR for GeoJSON:
zed-industries#49261

Closes (my own) discussion:
zed-industries#32963

PS: This is my first PR. I'd appreciate any feedback or suggestions for
improvement

Self-Review Checklist:

- [X] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [ ] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [ ] Performance impact has been considered and is acceptable

Release notes:

- Added automatic syntax highlighting for TopoJSON files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions

3 participants