We have good opportunity to improve the oobas Syntax Highlighting provided by the GeSHI based Syntax Highlighting extension in the Wiki.

I have recently been contacted by one of the GeSHi developers, and he has asked for our help in improving the oobas.php file.

What is needed?  We can work on two things to start with...

First, the keywords/reserved word list needs to be expanded and corrected where necessary. This list is currently:

------------
'KEYWORDS' => array(
1 => array( 'dim','private','public','global','as','if','redim','true','set', 'byval','false','bool','double','integer','long','object','single', 'variant', 'msgbox','print','inputbox','green','blue','red','qbcolor', 'rgb','open','close','reset','freefile','get','input','line', 'put','write','loc','seek','eof','lof','chdir','chdrive', 'curdir','dir','fileattr','filecopy','filedatetime','fileexists', 'filelen','getattr','kill','mkdir','name','rmdir','setattr', 'dateserial','datevalue','day','month','weekday','year','cdatetoiso', 'cdatefromiso','hour','minute','second','timeserial','timevalue', 'date','now','time','timer','erl','err','error','on','error','goto','resume', 'and','eqv','imp','not','or','xor','mod','atn','cos','sin','tan','log', 'exp','rnd','randomize','sqr','fix','int','abs','sgn','hex','oct', 'it','then','else','select','case','iif','do','loop','for','next', 'while','wend','gosub','return','goto','on','goto','call','choose','declare', 'end','exit','freelibrary','function','rem','stop','sub','switch','with', 'cbool','cdate','cdbl','cint','clng','const','csng','cstr','defbool', 'defdate','defdbl','defint','deflng','asc','chr','str','val','cbyte', 'space','string','format','lcase','left','lset','ltrim','mid','right', 'rset','rtrim','trim','ucase','split','join','converttourl','convertfromurl', 'instr','len','strcomp','beep','shell','wait','getsystemticks','environ', 'getsolarversion','getguitype','twipsperpixelx','twipsperpixely', 'createunostruct','createunoservice','getprocessservicemanager', 'createunodialog','createunolistener','createunovalue','thiscomponent','globalscope'
                        )
                ),
-------

This list needs to be reviewed, corrected, and expanded.

Second, the colors used for the highlighting can be improved. Currently we have customized the colors used, and are using:
-------
'STYLES' => array(
                'KEYWORDS' => array(
                        1 => 'color: #0000FF;'
                        ),
                'COMMENTS' => array(
                        1 => 'color: #808080;'
                        ),
                'BRACKETS' => array(
                        0 => 'color: #0000FF;'
                        ),
                'STRINGS' => array(
                        0 => 'color: #ff0000;'
                        ),
                'NUMBERS' => array(
                        0 => 'color: #FF0000;'
                        ),
                'METHODS' => array(
                        1 => 'color: #000000;'
                        ),
                'SYMBOLS' => array(
                        0 => 'color: #66cc66;'
                        ),
                'ESCAPE_CHAR' => array(
                        0 => 'color: #000099;'
                        ),
                'SCRIPT' => array(
                        ),
                'REGEXPS' => array(
                        )
                ),
-------

If you know anyone who can provide feedback on this please forward this message to then (if they are not on this mailing list).

I can collect the info and provide the updated material to the GeSHi developer... I do not know enough about OOoBasic to do the actual validation though.. so that is left up to you guys... the quicker we can provide some feedback, the better!

C.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to