Forum > Editor
Possible color selection bug
440bx:
Hello,
observed in Lazarus v3.99, 2024-10-23
In IDE Options/Editor, when clicking on the "{%region /fold}" line to select the IDE Directive, what is selected is "Comment" instead.
It is necessary to select IDE directive on the left hand side in order to set the color(s) for it. This is unlike the other items which can be selected by clicking on their corresponding line in the right hand side.
The attachment shows "Comment" selected after clicking on the "{%region /fold}" line.
Comments welcome.
paweld:
All IDE directives {%*} are recognized as comments.
Only compiler directives {$*} are identified as “directive”.
440bx:
--- Quote from: paweld on November 02, 2024, 09:04:34 am ---All IDE directives {%*} are recognized as comments.
--- End quote ---
They are comments but, the IDE recognizes and differentiates between plain comments, compiler directives and IDE directives (which are all technically comments.)
Click on "IDE Directives" on the left hand side and it will select the "{%region /fold}" line on the right hand side. This means that clicking on "{%region /fold}" on the right hand side should select "IDE Direcitives" _not_ select "Comment", just as clicking on "{$R- compiler directive} does _not_ select "Comment", it selects "Directive" as it should.
paweld:
--- Quote from: 440bx on November 02, 2024, 09:31:20 am ---Click on "IDE Directives" on the left hand side and it will select the "{%region /fold}" line on the right hand side. This means that clicking on "{%region /fold}" on the right hand side should select "IDE Direcitives" _not_ select "Comment", just as clicking on "{$R- compiler directive} does _not_ select "Comment", it selects "Directive" as it should.
--- End quote ---
I understand that. I just wanted to write that since I remember “IDE directives” are treated as comments. So I don't consider it a bug
n7800:
--- Quote from: paweld on November 02, 2024, 09:58:48 am ---
--- Quote from: 440bx on November 02, 2024, 09:31:20 am ---Click on "IDE Directives" on the left hand side and it will select the "{%region /fold}" line on the right hand side. This means that clicking on "{%region /fold}" on the right hand side should select "IDE Direcitives" _not_ select "Comment", just as clicking on "{$R- compiler directive} does _not_ select "Comment", it selects "Directive" as it should.
--- End quote ---
I understand that. I just wanted to write that since I remember “IDE directives” are treated as comments. So I don't consider it a bug
--- End quote ---
The IDE allows you to specify a separate color for IDE directives, so it makes sense that when you click on it, the color of the IDE directive should be highlighted, not just the comment.
I think it is worth creating a report on the bug tracker.
Navigation
[0] Message Index
[#] Next page