You are here: PSPad forum > English discussion forum > Re: How can I set a color for Block Comment in the Highlighter?

Re: How can I set a color for Block Comment in the Highlighter?

#1 How can I set a color for Block Comment in the Highlighter?

Posted by: Professor Bernd | Date: 2019-09-20 17:25 | IP: IP Logged

Hello, everyone. smiling smiley

I'm working on setting up PSPad as an IDE for AutoIt. I copied AutoIt3.ini and AutoIt3.def to the PSPad directory. The clip function and the highlighting work so far, except the highlighting for Block Comments.

My single line comment is green. How can I set up PSPad to display all lines in the comment block in green?

The block comment is created with #cs (Comment start) and #ce (Comment end). This is what it looks like:

#cs
This is a block comment
over 1 or more lines.
#ce

And this is how it's supposed to look:

#cs
This is a block comment
over 1 or more lines.
#ce

Greetings,
Bernd.

Translated with www.DeepL.com/Translatorsmiling smiley

Options: Reply | Quote | Up ^


#2 Re: How can I set a color for Block Comment in the Highlighter?

Posted by: pspad | Date: 2019-09-20 19:06 | IP: IP Logged

Hello

I am afraid you are not able to set it, cause PSPad doesn't know such block comment.
Autoit3 is provides as user highlighter definition and there is set of block highlight available. I have to add this block comment into user highlighter.

Options: Reply | Quote | Up ^


#3 Re: How can I set a color for Block Comment in the Highlighter?

Posted by: Professor Bernd | Date: 2019-09-20 21:07 | IP: IP Logged

Oh wow, my english is not so good, but did you say that you will implement the AutoIt Block Comment in the user highlighter? This is really great and I am very happy about it! smiling smiley

Options: Reply | Quote | Up ^






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