Variable type highlighting

Questions and discussion about the ZBasic IDE.
Post Reply
Don_Kirby
Posts: 341
Joined: 15 October 2006, 3:48 AM
Location: Long Island, New York

Variable type highlighting

Post by Don_Kirby »

The IDE highlights variable types such as Boolean and PersistentInteger.

It doesn't highlight PersistnentString_10 (bounded), although it compiles and works fine, meaning that I haven't mis-typed.

I've looked in the zbasic.api in the hopes that I could add it, but it seems that variable types aren't in there.

-Don
mikep
Posts: 796
Joined: 24 September 2005, 15:54 PM

Re: Variable type highlighting

Post by mikep »

Don_Kirby wrote:The IDE highlights variable types such as Boolean and PersistentInteger.
The keywords are listed in the file called bas.properties. PersistentString is listed here.
Don_Kirby wrote:It doesn't highlight PersistnentString_10 (bounded), although it compiles and works fine, meaning that I haven't mis-typed.
Well apart from the small typo above, you could add PersistentString_10 to the bas.properties file yourself. Of course the problem is that you might also want to add PersistentString_12, PersistentString_13, PersistentString_15 etc. You now I think you can see the reason why it is not listed in bas.properties.
Mike Perks
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Re: Variable type highlighting

Post by dkinzer »

Don_Kirby wrote:It doesn't highlight PersistnentString_10 (bounded)
An alternative syntax, shown below, is highlighted.

Code: Select all

Dim ps as PersistentString(10)
- Don Kinzer
Post Reply