Hi Scout,
I just seen this. I cannot see an easy way to cope with this in general. However, when I did the last fix for the lexing limiting it to 1000 characters that I guessed would be OK for most pages, I did add a setting to modify this value.
If you look for the settings config file somewhere in %appdata%. Mine is at "C:\Users\steve\AppData\Local\LitDev\SB-Prime.exe_Url_5ge2lq5zwv0dmwwzggpbckh41oxaqouj\1.1.9.0\user.conf". Check the date as there may be more than one, if different versions have been installed.
In this file modify the following setting from 1000 (default) to 100000
<setting name="MaxStylingCount" serializeAs="String">
<value>1000000</value>
</setting>
This will slow the large file cases a bit, but will work for this ArdiArdi case. In general a line with 100000 characters is not a great way to add data to a code - a file would be better, but I understand why it is done this way.
I can see that if a single line exceeds the maximum, the code will badly struggle as you show. I could check the max line length when a file is loaded, but not if a line is pasted or otherwise dynamically changed. Continually checking would of course also slow things, but I may have a go.
UPDATE
I have uploaded a version that does check line length and seems to work well, so I recommend remainin g with the default value of 1000 and updating to latest update, easiest using the Adavnced->Update option.
I just seen this. I cannot see an easy way to cope with this in general. However, when I did the last fix for the lexing limiting it to 1000 characters that I guessed would be OK for most pages, I did add a setting to modify this value.
If you look for the settings config file somewhere in %appdata%. Mine is at "C:\Users\steve\AppData\Local\LitDev\SB-Prime.exe_Url_5ge2lq5zwv0dmwwzggpbckh41oxaqouj\1.1.9.0\user.conf". Check the date as there may be more than one, if different versions have been installed.
In this file modify the following setting from 1000 (default) to 100000
<setting name="MaxStylingCount" serializeAs="String">
<value>1000000</value>
</setting>
This will slow the large file cases a bit, but will work for this ArdiArdi case. In general a line with 100000 characters is not a great way to add data to a code - a file would be better, but I understand why it is done this way.
I can see that if a single line exceeds the maximum, the code will badly struggle as you show. I could check the max line length when a file is loaded, but not if a line is pasted or otherwise dynamically changed. Continually checking would of course also slow things, but I may have a go.
UPDATE
I have uploaded a version that does check line length and seems to work well, so I recommend remainin g with the default value of 1000 and updating to latest update, easiest using the Adavnced->Update option.