Highlight big documents by 'Highlight Occurrences' and Lexer

Solved bugs are moved into this topic...
hycmos
Posts: 86
Joined: 06.11.2019 02:17

Highlight big documents by 'Highlight Occurrences' and Lexer

Post by hycmos »

Now in cudatext, Both "highlight occurrences" and 'Lexers" do not work when the file is very large (many many lines).
At this time, still very much want to continue to display colors.

actualy, user just can see some lines but not all lines on monitor screen. it is only 50~70 lines.
So both plugins just need load 50~70 lines to color them.
uvviewsoft
Posts: 392
Joined: 01.12.2020 13:46

Post by uvviewsoft »

There are options, you can change them-
https://wiki.freepascal.org/CudaText#Re ... _big_files

And the 'Highlight occurences' plugin has some options about limits.
"Options / Settings-plugins" menu.

>actualy, user just can see some lines but not all lines on monitor screen. it is only 50~70 lines.

And this is the task of LITE lexers:
https://wiki.freepascal.org/CudaText#Lite_lexers
Shovel
Posts: 141
Joined: 31.12.2019 10:16

Post by Shovel »

I had this exact problem with "highlight occurrences" on large logs. Looks like highlighting only in visible text can be done, so I will be adding it in the near future
hycmos
Posts: 86
Joined: 06.11.2019 02:17

Post by hycmos »

uvviewsoft wrote:There are options, you can change them-
https://wiki.freepascal.org/CudaText#Re ... _big_files

And the 'Highlight occurences' plugin has some options about limits.
"Options / Settings-plugins" menu.

>actualy, user just can see some lines but not all lines on monitor screen. it is only 50~70 lines.

And this is the task of LITE lexers:
https://wiki.freepascal.org/CudaText#Lite_lexers
thanks, I try it.
hycmos
Posts: 86
Joined: 06.11.2019 02:17

Post by hycmos »

Shovel wrote:I had this exact problem with "highlight occurrences" on large logs. Looks like highlighting only in visible text can be done, so I will be adding it in the near future
O! very good, expect it. easpically for the "highlight occurrences"
uvviewsoft
Posts: 392
Joined: 01.12.2020 13:46

Post by uvviewsoft »

Plugin (Highlight Occurrences) just updated:
2021.06.27
+ add: option "visible_fallback", to highlight occurrences only in visible part of large documents

Please test how it works in huge documents.
uvviewsoft
Posts: 392
Joined: 01.12.2020 13:46

Post by uvviewsoft »

@Shovel, I tested on 300K C++ file, (new option on), word is searched dynamically after scrolling, good!

NOTE!
Now plugin requires the last CudaText from here
http://www.uvviewsoft.com/c/
hycmos
Posts: 86
Joined: 06.11.2019 02:17

Post by hycmos »

Tested it. (6.5MB, 273003 lines)
Work very well. just as expect.
Thanks very much.

It is very useful function.
:) :)
hycmos
Posts: 86
Joined: 06.11.2019 02:17

Post by hycmos »

Sir,
The button in toolbar can not be colored. It seems the UI-theme setting can not work correctly.
uvviewsoft
Posts: 392
Joined: 01.12.2020 13:46

Post by uvviewsoft »

Some days ago I made a change - all buttons are NOT reacting to mouse hover. it was needed for windows. is this your issue?
Post Reply