Page 2 of 2
Posted: 19.06.2021 23:47
by uvviewsoft
We found a bug (visible when using CudaFormatter on BIG file). fixed it, updated release to 1.134.2.1.
your 40M XML file is now formatted OK.
Posted: 20.06.2021 09:19
by ertank
I upgraded to 1.134.2.1 version.
Using same file;
- I cannot change file type to XML.
- I cannot use XML Pretty Print with "XML ^" file type selected.
Small video trying to show problem is attached.
Posted: 20.06.2021 09:28
by uvviewsoft
>I cannot change file type to XML.
That is OK, editor don't allow 'normal' lexer for a huge file.
>I cannot use XML Pretty Print with "XML ^" file type selected.
You did not update the 'formatter for XML'. Open menu item "Plugins/ Addon Manager/ Update", check there item
"formatter: XML Pretty Print". Then OK to update.
Restart CudaText.
To check that it's new: open file /home/user/.config/cudatext/py/cuda_fmt_xml_pp/install.inf, and see lines
Code: Select all
[fmt1]
lexers=XML,XML ^
[fmt2]
lexers=XML,XML ^
Posted: 20.06.2021 10:12
by ertank
install.inf file was OK. I simply needed to update the plugin I just thought installing new version also updates everything. Still learning to use CudaText.
Formatting works now. Thanks.
I am also looking for to indent attributes in XML (so used to them from Notepad++). Attached is a Notepad++ formatted XML and CudaText formatted XML both. Dark background is CudaText.
Is this possible with existing XML formatter?
Thanks & Regards,
Ertan
Posted: 20.06.2021 10:45
by uvviewsoft
'XML pretty print' seems cannot indent like this.
That is a work for HTML Tidy plugin (it maybe handles XML too?).
You need to read docs about HTML Tidy (online) and find such an option.
Then plugin 'HTML Tidy' can be configured- 'Plugins/ HTML Tidy/ Browse configs' - place a new file there.