You are here: PSPad forum > Bug report / Hlášení chyb > Re: PSPad freezes when loading a CSS

Re: PSPad freezes when loading a CSS

Goto Page: Previous1 2

#11 Re: PSPad freezes when loading a CSS

Posted by: agin | Date: 2018-06-14 11:56 | IP: IP Logged

Success for now:
I changes some "Special settings"!
I did not track down now, which one gave success, but I changed the
following values to 10 times the original one:

CodeExplorerLimit=2000000
HLOnUpToSize=5000000
MaxWrapSize=2000000
MultiHLOnUpToSize=3500000

Edited 1 time(s). Last edit at 2018-06-14 11:59 by agin.

Options: Reply | Quote | Up ^


#12 Re: PSPad freezes when loading a CSS

Posted by: pspad | Date: 2018-06-14 12:03 | IP: IP Logged

From my point of view the 1,5MB size of CSS is nonsense. Any browser needs to load CSS into memory but loading such big CSS takes few seconds and slow down whole web.

I must test it, find a way how to handle it.
Generally PSPad highlighter has problem with long lines. And when line has 1 000 000 chars...

Options: Reply | Quote | Up ^


#13 Re: PSPad freezes when loading a CSS

Posted by: pspad | Date: 2018-06-14 12:59 | IP: IP Logged

agin:
Success for now:
I changes some "Special settings"!
I did not track down now, which one gave success, but I changed the
following values to 10 times the original one:

CodeExplorerLimit=2000000
HLOnUpToSize=5000000
MaxWrapSize=2000000
MultiHLOnUpToSize=3500000

The problem (freezing) is caused by URL highlighter. It can't handle long lines.
URL highlighter is automatically applied when no highlighter is used - it allows you highlight urls inside text file and use it as active links.

It means I need to modify URL highlighter

CodeExplorerLimit and MaxWrapSize has no influence.

Options: Reply | Quote | Up ^


#14 Re: PSPad freezes when loading a CSS

Posted by: agin | Date: 2018-06-14 13:50 | IP: IP Logged

For the CSS size:
Thousands of shops in germany are running this.
But, for productive environment, the file is compressed down to around 300kB later in the shop system. Still has lines of >100kB I think...
Obviously it is OK, that there are limits in an editor.
The only thing is, that it should better not result in a crash or an endless loop.
That would be nice!
winking smiley

Options: Reply | Quote | Up ^


Goto Page: Previous1 2





Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR