# Add automatic syntax highlighting for TopoJSON files \(\#53546\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/b1f8bd6c2bc9e5c138544b69ad42bbb3a43ff086)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: b1f8bd6c2bc9e5c138544b69ad42bbb3a43ff086

Requested commit: b1f8bd6c2bc9e5c138544b69ad42bbb3a43ff086

Commit: b1f8bd6c2bc9e5c138544b69ad42bbb3a43ff086

Tree: 064ee0994fac2849301692bd01c64d54eed0f20f

Author: Jonas

Committer: GitHub

## Message

```
Add automatic syntax highlighting for TopoJSON files (#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:
https://github.com/zed-industries/zed/pull/49261

Closes (my own) discussion:
https://github.com/zed-industries/zed/discussions/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
```

## Parents

- [9264f7f88354c9da107aa78f4d9521041dc6b304](https://git.cafe/gitcafe/zed/commit/9264f7f88354c9da107aa78f4d9521041dc6b304?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/b1f8bd6c2bc9e5c138544b69ad42bbb3a43ff086?format=markdown)
