Because I didn’t see the Geany plugin for this purpose, I was thinking about using the custom command. Format> Send selection to. I tried to use xmllint –format without success, because it looks like Geany passed a string, but xmllint A file is needed.
>Are there other tools that can automatically indent XML by customizing Geany commands?
>Are there other ways to achieve this besides custom commands?
>Install the xmlindent CLI tool:
$sudo apt-get install xmlindent
>In Geany, edit>Format>Send selection to>Set custom command to add Command:
xmlindent -i 4 -f
This will indent the line by 4 spaces and force elements without children to wrap.
< /p>
My problem is that the XML is automatically formatted/indented in Geany, when the XML is not properly indented or not indented at all.
Because I don’t see the use For the Geany plugin for this purpose, I’m thinking of sending the selection to using custom commands via Edit>Format>. I tried to use xmllint –format without success, because it looks like Geany passed a string, but xmllint requires a file.< /p>
>Are there other tools that can automatically indent XML through custom Geany commands?
>Are there other ways to achieve this besides custom commands?
Found a solution. Realize Xml indentation automatic correction in Geany (Mint / Ubuntu):
>Install xmlindent CLI tool:
$sudo apt-get install xmlindent
>In Geany, edit>format>send selection to>set custom command to add command:
xmlindent -i 4 -f
This will indent the line by 4 spaces and force elements without children to wrap.