XML lexer not using colors

ertank
Posts: 61
Joined: 06.06.2021 21:56

XML lexer not using colors

Post by ertank »

Hello,

I have an XML that is about 1.5MB in size. This file has about 48000 lines and none of them is longer than 100 chars. When I open that file, XML lexer is used. However, It does not color highlight the file except the first line. Sample screen capture is attached.

File using end-of-line chars as LF but changing it to CRLF does not help either. I do not see any update for XML lexer in Update add-ons screen.

Manually switching to XML Lite lexer is my current work around.

I appreciate any help.

Thanks & Regards,
Ertan
Attachments
image_2022-04-12_185537548.png
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

That is good question. I wrote the reply, now, to the wiki--
https://wiki.freepascal.org/CudaText#Wh ... _XML_lexer
ertank
Posts: 61
Joined: 06.06.2021 21:56

Post by ertank »

I personally liked option

Code: Select all

"ui_max_size_lexer":2
Modified it in Settings - user and all is fine now.

Thanks for the wiki.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

But for your case, option for 'folding' was more appropriate..
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

Made a change. from the next version, XML lexer will show more syntax highlight even when 'folding' is blocked by the option. will be almost like lite lexer.

you can update the file "XML.lcf" from GitHub and see it.
ertank
Posts: 61
Joined: 06.06.2021 21:56

Post by ertank »

Right, it does work with long lined files. But, I find number color Navy to be a bit difficult to read on my theme setting. Comparing it with XML Lite lexer.

Thanks for the feature.

Edit: Navy color is better on my ViewSonic monitor and difficult to read on Asus monitor. I take it depends on the monitor capabilities, too.
Attachments
XML Lite lexer
XML Lite lexer
XML lexer
XML lexer
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

I see that Navy color is not okay for that theme. is it your handmade theme? seems it is. so you must adjust it-- in "Options / settings - theme - syntax". (or choose another theme. another SYNTAX theme.)
ertank
Posts: 61
Joined: 06.06.2021 21:56

Post by ertank »

It is stock ebony theme
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

I think you chosen 'ebony' UI-theme + ANOTHER syntax-theme! Syntax-theme 'ebony' shows here not colors like yours, e.g. 'numbers' style is much more lighter.
check the dialog Options/Themes again - what is syntax-theme?
ertank
Posts: 61
Joined: 06.06.2021 21:56

Post by ertank »

I have both set to ebony in my Themes settings
Attachments
image_2022-04-18_162229128.png
Post Reply