this post was submitted on 14 May 2024
1358 points (99.1% liked)

Programmer Humor

32051 readers
1719 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] jballs@sh.itjust.works 37 points 4 months ago (5 children)

I have the same problem with XML too. Notepad++ has a plugin that can format a 50MB XML file in a few seconds. But my current client won't allow plugins installed. So I have to use VS Code, which chokes on anything bigger than what I could do myself manually if I was determined.

[–] seaQueue@lemmy.world 12 points 4 months ago (1 children)

Time to train an LLM to format XML and hope for the best

[–] PsychedSy@lemmy.dbzer0.com 21 points 4 months ago (1 children)

Do we need a "don't parse xml with LLM" copypasta?

[–] QuazarOmega@lemy.lol 14 points 4 months ago (2 children)
[–] BluesF@lemmy.world 5 points 4 months ago

Wait, it's all regex?

Always has been

[–] PsychedSy@lemmy.dbzer0.com 5 points 4 months ago

I don't wish death on anyone.

[–] Johanno@feddit.de 4 points 4 months ago

Just install python and format it. Then

[–] expr@programming.dev 4 points 4 months ago

Meanwhile, I can open a 1GB file in (stock) vim without any trouble at all.

Formatting is what xmllint is for.

[–] olafurp@lemmy.world 4 points 4 months ago

I use vim macros. You can do some crazy formatting with it

[–] bloubz@lemmygrad.ml 0 points 4 months ago

You don't need to open a file in a text editor to format it