You are here: PSPad forum > English discussion forum > PSPad syntax highlighting not working properly for big files
Posted by: dapspuser | Date: 2022-06-18 08:27 | IP: IP Logged
PSPad syntax highlighting not working properly for big files.
When opening a big file either by starting PSPad or opening it from PSPad the syntax highlighting (UNIX Shell Script) does not apply.
But when changing syntax (edit > change syntax) it works fine.
To reproduce it:
file with 27778 lines like the following:
# simple comment
# simple comment
# simple comment
...
When the file has 27777 lines the syntax highlighting works as expected.
AFAIKS it's not the number of lines but the size of the file which causes it. This behaviour can be reproduced as well with less but longer lines.
Using PSPad 5.0.6 (Build 589) on Windows 10 Version 20H2 Build 19042.1706
Posted by: pspad | Date: 2022-06-18 09:41 | IP: IP Logged
Hello
There is a limit for highlighting
Open progam settings, direct edit button and change HlUptoSize variable value to e. e.g. 1 million
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