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

Programmer Humor

31251 readers
1619 users here now

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

Rules:

founded 4 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 37 points 1 month 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.

[–] [email protected] 12 points 1 month ago (1 children)

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

[–] [email protected] 21 points 1 month ago (1 children)

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

[–] [email protected] 14 points 1 month ago (2 children)
[–] [email protected] 5 points 1 month ago

I don't wish death on anyone.

[–] [email protected] 5 points 1 month ago

Wait, it's all regex?

Always has been

[–] [email protected] 4 points 1 month ago

Just install python and format it. Then

[–] [email protected] 4 points 1 month ago

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

[–] [email protected] 4 points 1 month ago

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

Formatting is what xmllint is for.

[–] [email protected] 0 points 1 month ago

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