You are here: PSPad forum > Bug report / Hlášení chyb > Some Perl document (*pl or *pm) are not code-formatted after opening PSPad

Some Perl document (*pl or *pm) are not code-formatted after opening PSPad

#1 Some Perl document (*pl or *pm) are not code-formatted after opening PSPad

Posted by: ieee | Date: 2024-01-16 09:18 | IP: IP Logged

Hi,

I have usually open several Perl programming language files in PSPad (in their own tabs). A Few of them are *.pl and some *.pm files. I have setup PSPad in a such way that it will remember last opened files. When I close PSPad and then open it later, files are reopened OK but some *pm or *pl files are not code-formatted. I have to trigger this formatting manually via "code formatting" icon (Menu view->Change Syntax). This issue is present for many years already I just reported it now in the PSPAd 5.5.1 (790) version.

Thanks for help.

Options: Reply | Quote | Up ^


#2 Re: Some Perl document (*pl or *pm) are not code-formatted after opening PSPad

Posted by: pspad | Date: 2024-01-16 09:22 | IP: IP Logged

I guess you mean syntax highlight.
How big are your files? There is filr size limit for automatic file highlight

Open program settings / direct edit button. Look for HlUpToSize=nnnnnn
And change limit e.g. to 1 milion

Options: Reply | Quote | Up ^


#3 Re: Some Perl document (*pl or *pm) are not code-formatted after opening PSPad

Posted by: ieee | Date: 2024-01-16 10:30 | IP: IP Logged

Yes, exactly... I mean syntax highlighting. Files are between 3000 and 20 000 lines long.

Options: Reply | Quote | Up ^


#4 Re: Some Perl document (*pl or *pm) are not code-formatted after opening PSPad

Posted by: ieee | Date: 2024-01-16 10:33 | IP: IP Logged

Yes, one file is above default 500 000 Bytes... I will change config to the 1 000 000 B and test again. Many thanks.

Options: Reply | Quote | Up ^


#5 Re: Some Perl document (*pl or *pm) are not code-formatted after opening PSPad

Posted by: ieee | Date: 2024-01-26 11:36 | IP: IP Logged

It works fine now. Thanks a lot.

Options: Reply | Quote | Up ^






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