extensions icon indicating copy to clipboard operation
extensions copied to clipboard

XML

Open wzxu opened this issue 1 year ago • 13 comments

Check for existing issues

  • [X] Completed

Describe the feature

Zed currently already supports syntax highlighting for HTML. Should be low hanging fruit to extend it to support XML.

If applicable, add mockups / screenshots to help present your vision of the feature

No response

wzxu avatar Mar 27 '23 06:03 wzxu

XML was a third file I have opened with ZED and I was quite surprised that it wasn't highlighted. 😮

mileusna avatar Mar 30 '23 18:03 mileusna

XML support should open up door for other files as well (such as SVG, RSS, etc).

Here are some projects that might be helpful to get this done.

naiyerasif avatar Jan 26 '24 17:01 naiyerasif

Please add XML support! Other much less known languages ​​are receiving support or already have it and XML, which is widely used, does not have highlighted texts :(

In my case I would like this support because I create plugins for Final Cut Pro X and it uses XML as the base of the ".moti" files.

claitonllemes avatar Feb 14 '24 23:02 claitonllemes

Yes please, xml is a must

jandroav avatar Feb 24 '24 20:02 jandroav

If you need a large XML file for testing, here is one :smile: https://www.data.gouv.fr/fr/datasets/cheminements-pietons-dans-paris-dapres-openstreetmap/

thbar avatar Mar 24 '24 22:03 thbar

If you need a large XML file for testing, here is one 😄 https://www.data.gouv.fr/fr/datasets/cheminements-pietons-dans-paris-dapres-openstreetmap/

🤫 Zed can't even open 500K - 1MB files.

mileusna avatar Mar 26 '24 19:03 mileusna

🤫 Zed can't even open 500K - 1MB files.

It seems to open that 431MB file just fine here, after just a few seconds of loading. Not too shabby!

CleanShot 2024-03-26 at 20 48 49@2x

thbar avatar Mar 26 '24 19:03 thbar

🤫 Zed can't even open 500K - 1MB files.

It seems to open that 431MB file just fine here, after just a few seconds of loading. Not too shabby!

Strange, it works with this enormous XML file, but still can't open my 2.9MB .txt file. Looks like I will have to open new issue.

This is what I get compared to Sublime Text:

Screenshot 2024-03-26 at 21 37 58

mileusna avatar Mar 26 '24 20:03 mileusna

@mileusna are you able to share the file for a reproduction ? Maybe it's related to platform-specific bits (I'm on Mac M1).

thbar avatar Mar 26 '24 22:03 thbar

@mileusna are you able to share the file for a reproduction ? Maybe it's related to platform-specific bits (I'm on Mac M1).

I have opened the issue, here you can find everything, including the file.

https://github.com/zed-industries/zed/issues/9833

mileusna avatar Mar 26 '24 23:03 mileusna

XML support is available now in the XML extension https://github.com/zed-industries/extensions/pull/590 https://github.com/sweetppro/zed-xml

sweetppro avatar Apr 25 '24 05:04 sweetppro

Could you pls add also support for *.xsl files?

lacastorine avatar May 08 '24 11:05 lacastorine

you can add something like this to your settings:

"file_types": {
    "XML": ["xsl"]
  }

sweetppro avatar May 08 '24 17:05 sweetppro

Closing this issue, since the XML extension is now available.

maxdeviant avatar May 23 '24 18:05 maxdeviant

Just wanna say that it feels very weird to have one of the most common markup languages on the planet not supported out of the box.

maryisdead avatar Jun 26 '24 07:06 maryisdead