Page 1 of 1
Variable type highlighting
Posted: 06 February 2008, 17:38 PM
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
Re: Variable type highlighting
Posted: 06 February 2008, 19:35 PM
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.
Re: Variable type highlighting
Posted: 06 February 2008, 21:55 PM
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)