Hi guys,
the idea to highlight a term by double-clicking (e.g. a variable) in the editor at all places in the source code is absolutely great. Has already helped me a lot and I would not want to miss more. But by chance I discovered a small bug where it doesn't work as it should (I'm using PB 5.41, maybe the bug is already known and not present in the newer versions?).
Example code 1:
Days = 10
Time = Date()-Days*60*60*24
A double-click in line 1 on "Days" does not show me "Days" in line 2 (because of "*").
Example code 2:
Days = 10
Time = Date()-Days *60*60*24
Here it works.
// Moved from "Bugs - Windows" to "Coding Questions" (Kiffi)
Bug in PB-Editor
Re: Bug in PB-Editor
This is no bug. This is because the * is counted as extra character by default (as same as # $ and %).
You can change this behavior in the settings: Preference -> Editor -> Editing -> Extra characters included in word selection: $#*%
You can change this behavior in the settings: Preference -> Editor -> Editing -> Extra characters included in word selection: $#*%
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Re: Bug in PB-Editor
I think It could be improved though to avoid cases like that.
Re: Bug in PB-Editor
It also would be nice, if constants in the help file were selected fully, when double clicked.
That would make it easyer to copy / paste it into the source code.
At the moment, only the part between the '_' (underscore) characters is selected.
That would make it easyer to copy / paste it into the source code.
At the moment, only the part between the '_' (underscore) characters is selected.
Re: Bug in PB-Editor
Constants in the Help file are out of Fred's control, because it's a Windows app displaying the file.
Re: Bug in PB-Editor
For me, triple-click selects the entire line of code when the constant is triple-clicked.
Re: Bug in PB-Editor
You are right, I was looking at the PureBasic Constants chapter of the help files.
The constants are in their own field of the table which is why triple-click works.
Jim
The constants are in their own field of the table which is why triple-click works.
Jim
Re: Bug in PB-Editor
Thanks for your clarification. I was seriously wondering why it "worked" for you but not me. Phew!