How to re-indent your grammar.xml

Hi, some grammar.xml files have become a bit messy over time, not using a consistent indentation. I’ve added org.languagetool.dev.XmlIndenter to the repo to re-indent XML files. While you can indent XML with many tools (e.g. xmllint), these tools tend to introduce line breaks. XmlIndenter really only changes to indentation. I’ve used it for pt/grammar.xml and pt-BR/grammar.xml already. Feel free to run it on other XML grammar files, or let me know if you want me to run it for you.

Daniel,

How do I use it on Windows?

Thanks!

It’s meant to be called directly from the IDE (e.g. IntelliJ), assuming rule developers have set that up anyway.