Code: Select all
#include ''working as in c++
#ifndef _module_h
#define _module_h
''so that this code is included only once
#endif
#replace a<b<c ((a)<(b)and((b)<(c))
''í use sub's and function's for this .
''but it may be useful for other's
#macro somemacro()
#endmacro
Code: Select all
''list's
l# = list#( 1 , 2 , 3 )
a# = b# + c#
q = len( l# )
a# = b#[ : : -1 ]
''dict's
d% = dict%( "a" ; 1 , "b" , 2 )
d% = { "a" ; 1 , "b" , 2 )
a% = b% + c%
q = b%( "a" )
''tuple's
t@ = tuple@( 1 , 2 , 3 )
t@ = ( 1 , 2 , 3 )
''tuple's are inmuteble so a@ = b@ + c@ is not good
''string's
a$ = a$[ : : -1 ]
''all
function f( no , s$ , l# , d% , t@ )
Code: Select all
''other color than other code for
( ) , + - * / ^ [ ] { } ;
''binary number's same color as other numbers
%1111000
''hex number's same color as other numbers
h&ffffff
''path incusion for ordering my module's
import "modules\openGL\bluaGL.bas"
''import same color as reserved word's
''true false and pi as fixed and color as reseved word's
const q = 13
const q$ = "hello"
''const list's dict's and tuple's too
''if you chage a const you have to get a error
i have in freebasic the folowing color's setting's in my ide :
remark's black on green bold
#stuf black on pink bold
symbol's black on yellow bold
reseved word's black on cyan bold
number's red on white normal [ also hex ]
string's literal's green on white normal
variable's and array's black on white normal
function's and sub name's black on white normal
selection white on blue normal
error white on red bold
background white
i want the same in LBB or that i can fix this in the ide myself
even better :
al in 1 line independently fixeble
bineary literal same as number
list's , dictoinary's and tuple's literal's same as string's
i need a null / nothing / none item too