no XML highlighting for 40M XML file

uvviewsoft
Posts: 392
Joined: 01.12.2020 13:46

Post 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.
Attachments
Screenshot from 2021-06-20 02-48-30.png
ertank
Posts: 61
Joined: 06.06.2021 21:56

Post 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.
Attachments
Media4.7z
(252.03 KiB) Downloaded 94 times
uvviewsoft
Posts: 392
Joined: 01.12.2020 13:46

Post 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 ^
ertank
Posts: 61
Joined: 06.06.2021 21:56

Post 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
Attachments
image_2021-06-20_131031.png
image_2021-06-20_130845.png
uvviewsoft
Posts: 392
Joined: 01.12.2020 13:46

Post 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.
Post Reply