You are here: PSPad forum > English discussion forum > Error in AutoIt3 Highlighter on comment

Error in AutoIt3 Highlighter on comment

#1 Error in AutoIt3 Highlighter on comment

Posted by: Professor Bernd | Date: 2020-05-13 06:22 | IP: IP Logged

Text after comment characters is NOT highlighted as comment if the comment character ";" is directly (without spaces) after another character.

image

Options: Reply | Quote | Up ^


#2 Re: Error in AutoIt3 Highlighter on comment

Posted by: pspad | Date: 2020-05-13 06:58 | IP: IP Logged

You use Basic style comment in the user highlighter declaration and Basic comment must start after space or tab.
Open User highlighter definition and check VLisp comment in the first part of comments:
;|..|;

It will tell PSpad that comment can start directly after text. It's temporary solution, I will make this functionality for AutoIt comment #cb..#ce too.
Will be available in the next build

Options: Reply | Quote | Up ^


#3 Re: Error in AutoIt3 Highlighter on comment

Posted by: Professor Bernd | Date: 2020-05-13 08:32 | IP: IP Logged

VLisp comment works fine. Thank you very much.

Options: Reply | Quote | Up ^


#4 Re: Error in AutoIt3 Highlighter on comment

Posted by: pspad | Date: 2020-05-13 09:10 | IP: IP Logged

VLips allows comment start immediately behind the word without space. I will make same exception for AutoIt comment.
In next build you can switch VLisp comment off and it will work.

Options: Reply | Quote | Up ^


#5 Re: Error in AutoIt3 Highlighter on comment

Posted by: Professor Bernd | Date: 2020-05-13 09:26 | IP: IP Logged

Could you also take the opportunity to have the block comment highlighted until the end of the line?

For example

now it is:

#cs -----------------------
any text
#ce
-----------------------

but it should be:

#cs -----------------------
any text
#ce -----------------------

Options: Reply | Quote | Up ^


#6 Re: Error in AutoIt3 Highlighter on comment

Posted by: pspad | Date: 2020-05-13 09:34 | IP: IP Logged

I can't be, cause end of block ends comment. Behind the #ce can be code and it can't be highlighted as comment.

Options: Reply | Quote | Up ^


#7 Re: Error in AutoIt3 Highlighter on comment

Posted by: Professor Bernd | Date: 2020-05-15 14:27 | IP: IP Logged

In AutoIt, the Comment block continues to the end of line even after the end character "#ce".

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