Ye olde STRG+ALT 9 key trick still workethmilan1612 wrote:That's why I bought a US layout keyboard, it's less hassle to entergnozal wrote:+1AND51 wrote:I don't like to use AltGr everytime I want to type the name of an array or list, Shift is better.
Same on french keyboards, probably on most non english keyboards ?
the German Umlauts by typing in a combination of keys once
in a while than to ruin your wrist over the time with AltGr + ...![]()
+1 to the request btw...
Allow use of [] for lists and arrays
-
Captn. Jinguji
- User

- Posts: 94
- Joined: Sun Oct 24, 2004 9:25 am
Re: Allow use of [] for lists and arrays
Re: Allow use of [] for lists and arrays
You cannot expect people to change their keyboard layout or buy a new keyboard only to cope with [ and ]. But I just assume, this idea was kinda joke...milan1612 wrote:That's why I bought a US layout keyboardgnozal wrote:+1AND51 wrote:I don't like to use AltGr everytime I want to type the name of an array or list, Shift is better.
Same on french keyboards, probably on most non english keyboards ?
PB 4.30
Code: Select all
onErrorGoto(?Fred)hmmm....
Code: Select all
Structure bar
a.l
foo.l[10]
EndStructure
NewList foo.bar[]
AddElement(foo())
foo[]\foo[2] = 5
Debug foo[]\foo[1]
Debug foo[]\foo[2]
"In 3D there is never enough Time to do Things right,
but there's always enough Time to make them *look* right."
"psssst! i steal signatures... don't tell anyone!
"
but there's always enough Time to make them *look* right."
"psssst! i steal signatures... don't tell anyone!
-1
Just MHO
I use [] for pointer arrays stepping though memory blocks. I see the square brackets and know I'm working with raw memory and not PB structured arrays.
Going back to "What problem are we trying so solve" it looks like the issue is when there is nesting, arrays in functions etc then the level of curved brackets becomes ambiguous. An alternative solution would be to have the IDE colour code curved bracked at matching depth
MyProc(Left(MyArray(1),1))
Which could be customised as per other colouring preferences in the IDE.
my 2 yen
Just MHO
I use [] for pointer arrays stepping though memory blocks. I see the square brackets and know I'm working with raw memory and not PB structured arrays.
Going back to "What problem are we trying so solve" it looks like the issue is when there is nesting, arrays in functions etc then the level of curved brackets becomes ambiguous. An alternative solution would be to have the IDE colour code curved bracked at matching depth
MyProc(Left(MyArray(1),1))
Which could be customised as per other colouring preferences in the IDE.
my 2 yen
Paul Dwyer
“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
- Kaeru Gaman
- Addict

- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
nested colouring would eat up a lot of editor's performance, I would suspect.
I'm happy with getting both brackets highlighted in blue when the cursor is on one of them,
resp. get the one highlighted in red when there is no match.
btw... is there a function to jump to the corresponting command,
e.g. jumping from the EndIf to the If by just one keypress?
I'm happy with getting both brackets highlighted in blue when the cursor is on one of them,
resp. get the one highlighted in red when there is no match.
btw... is there a function to jump to the corresponting command,
e.g. jumping from the EndIf to the If by just one keypress?
oh... and have a nice day.
Maybe these things could be toggled then.
I'm just thinking out loud though
I'm just thinking out loud though
Paul Dwyer
“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
- Kaeru Gaman
- Addict

- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
I'm used to being called a crazy gaijin for whatever reason, pretty soon 1/3rd of my life will have been living here. better the bad mouthing come to me than go to my family if I was back in AU
Paul Dwyer
“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
Gajin... you're in Asia? China or Japan or something? Ah, I see, Japan...
Good stuff, always had a soft spot for Asia, but never found a good job there, except for a one year stay in China.
Good stuff, always had a soft spot for Asia, but never found a good job there, except for a one year stay in China.
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )

