plugins/geshi/geshi/matlab.php
changeset 2 9e3258dfae15
parent 0 441963e5b07a
child 3 f3e2bbbd2155
equal deleted inserted replaced
1:c715631f809a 2:9e3258dfae15
     2 /*************************************************************************************
     2 /*************************************************************************************
     3  * matlab.php
     3  * matlab.php
     4  * -----------
     4  * -----------
     5  * Author: Florian Knorn (floz@gmx.de)
     5  * Author: Florian Knorn (floz@gmx.de)
     6  * Copyright: (c) 2004 Florian Knorn (http://www.florian-knorn.com)
     6  * Copyright: (c) 2004 Florian Knorn (http://www.florian-knorn.com)
     7  * Release Version: 1.0.7.20
     7  * Release Version: 1.0.8.2
     8  * Date Started: 2005/02/09
     8  * Date Started: 2005/02/09
     9  *
     9  *
    10  * Matlab M-file language file for GeSHi. 
    10  * Matlab M-file language file for GeSHi.
    11  *
    11  *
    12  * CHANGES
    12  * CHANGES
    13  * -------
    13  * -------
    14  * 2006-03-25
    14  * 2006-03-25 (1.0.7.22)
    15  *   - support for the transpose operator
    15  *   - support for the transpose operator
    16  *   - many keywords added
    16  *   - many keywords added
    17  *   - links to the matlab documentation at mathworks
    17  *   - links to the matlab documentation at mathworks
    18  *      by: Olivier Verdier (olivier.verdier@free.fr)
    18  *      by: Olivier Verdier (olivier.verdier@free.fr)
    19  * 2005/05/07 (1.0.0)
    19  * 2005/05/07 (1.0.0)
    39  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    39  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    40  *
    40  *
    41  ************************************************************************************/
    41  ************************************************************************************/
    42 
    42 
    43 $language_data = array (
    43 $language_data = array (
    44 	'LANG_NAME' => 'Matlab M',
    44     'LANG_NAME' => 'Matlab M',
    45 	'COMMENT_SINGLE' => array(1 => '%'),
    45     'COMMENT_SINGLE' => array(1 => '%'),
    46 	'COMMENT_MULTI' => array(),
    46     'COMMENT_MULTI' => array(),
    47 	'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
    47     //Matlab Strings
    48 	'QUOTEMARKS' => array(),
    48     'COMMENT_REGEXP' => array(
    49 	'ESCAPE_CHAR' => '',
    49         2 => "/(?<![\\w\\)\\]\\}\\.])('[^\\n']*?')/"
    50 	'KEYWORDS' => array(
    50         ),
    51 		1 => array(
    51     'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
    52 			'break', 'case', 'catch', 'continue', 'elseif', 'else', 'end', 'for', 
    52     'QUOTEMARKS' => array(),
    53 			'function', 'global', 'if', 'otherwise', 'persistent', 'return', 
    53     'ESCAPE_CHAR' => '',
    54 			'switch', 'try', 'while','...'
    54     'KEYWORDS' => array(
    55 			),
    55         1 => array(
       
    56             'break', 'case', 'catch', 'continue', 'elseif', 'else', 'end', 'for',
       
    57             'function', 'global', 'if', 'otherwise', 'persistent', 'return',
       
    58             'switch', 'try', 'while'
       
    59             ),
    56         2 => array(
    60         2 => array(
    57                             'all',
    61             'all','any','exist','is','logical','mislocked',
    58 							'any',
    62 
    59 							'exist',
    63             'abs','acos','acosh','acot','acoth','acsc','acsch','airy','angle',
    60 							'find',
    64             'ans','area','asec','asech','asin','asinh','atan','atan2','atanh',
    61 							'is',
    65             'auread','autumn','auwrite','axes','axis','balance','bar','bar3',
    62 							'isa',
    66             'bar3h','barh','besselh','besseli','besselj','besselk','Bessely',
    63 							'logical',
    67             'beta','betainc','betaln','bicg','bicgstab','bin2dec','bitand',
    64 							'mislocked',
    68             'bitcmp','bitget','bitmax','bitor','bitset','bitshift','bitxor',
    65 							
    69             'blkdiag','bone','box','brighten','builtin','bwcontr','calendar',
    66 							'builtin',
    70             'camdolly','camlight','camlookat','camorbit','campan','campos',
    67 							'eval',
    71             'camproj','camroll','camtarget','camup','camva','camzoom','capture',
    68 							'evalc',
    72             'cart2pol','cart2sph','cat','caxis','cdf2rdf','ceil','cell',
    69 							'evalin',
    73             'cell2struct','celldisp','cellfun','cellplot','cellstr','cgs',
    70 							'feval',
    74             'char','chol','cholinc','cholupdate','cla','clabel','class','clc',
    71 							'function',
    75             'clf','clg','clock','close','colmmd','colorbar','colorcube',
    72 							'global',
    76             'colordef','colormap','colperm','comet','comet3','compan','compass',
    73 							'nargchk',
    77             'complex','computer','cond','condeig','condest','coneplot','conj',
    74 							'persistent',
    78             'contour','contourc','contourf','contourslice','contrast','conv',
    75 							'script',
    79             'conv2','convhull','cool','copper','copyobj','corrcoef','cos',
    76 							'break',
    80             'cosh','cot','coth','cov','cplxpair','cputime','cross','csc','csch',
    77 							'case',
    81             'cumprod','cumsum','cumtrapz','cylinder','daspect','date','datenum',
    78 							'catch',
    82             'datestr','datetick','datevec','dbclear','dbcont','dbdown',
    79 							'else',
    83             'dblquad','dbmex','dbquit','dbstack','dbstatus','dbstep','dbstop',
    80 							'elseif',
    84             'dbtype','dbup','deblank','dec2bin','dec2hex','deconv','del2',
    81 							'end',
    85             'delaunay','det','diag','dialog','diff','diffuse','dlmread',
    82 							'error',
    86             'dlmwrite','dmperm','double','dragrect','drawnow','dsearch','eig',
    83 							'for',
    87             'eigs','ellipj','ellipke','eomday','eps','erf','erfc','erfcx',
    84 							'if',
    88             'erfiny','error','errorbar','errordlg','etime','eval','evalc',
    85 							'otherwise',
    89             'evalin','exp','expint','expm','eye','ezcontour','ezcontourf',
    86 							'return',
    90             'ezmesh','ezmeshc','ezplot','ezplot3','ezpolar','ezsurf','ezsurfc',
    87 							'switch',
    91             'factor','factorial','fclose','feather','feof','ferror','feval',
    88 							'try',
    92             'fft','fft2','fftshift','fgetl','fgets','fieldnames','figure',
    89 							'warning',
    93             'fill','fill3','filter','filter2','find','findfigs','findobj',
    90 							'while',
    94             'findstr','fix','flag','flipdim','fliplr','flipud','floor','flops',
    91 							'input',
    95             'fmin','fmins','fopen','fplot','fprintf','fread','frewind','fscanf',
    92 							'keyboard',
    96             'fseek','ftell','full','funm','fwrite','fzero','gallery','gamma',
    93 							'menu',
    97             'gammainc','gammaln','gca','gcbo','gcd','gcf','gco','get',
    94 							'pause',
    98             'getfield','ginput','gmres','gradient','gray','graymon','grid',
    95 							'class',
    99             'griddata','gsvd','gtext','hadamard','hankel','hdf','helpdlg',
    96 							'double',
   100             'hess','hex2dec','hex2num','hidden','hilb','hist','hold','hot',
    97 							'inferiorto',
   101             'hsv','hsv2rgb','i','ifft','ifft2','ifftn','ifftshift','imag',
    98 							'inline',
   102             'image','imfinfo','imread','imwrite','ind2sub','Inf','inferiorto',
    99 							'int8',
   103             'inline','inpolygon','input','inputdlg','inputname','int16',
   100 							'int16',
   104             'int2str','int32','int8','interp1','interp2','interp3','interpft',
   101 							'int32',
   105             'interpn','intersect','inv','invhilb','ipermute','isa','ishandle',
   102 							'isa',
   106             'ismember','isocaps','isonormals','isosurface','j','jet','keyboard',
   103 							'loadobj',
   107             'lcm','legend','legendre','light','lighting','lightingangle',
   104 							'saveobj',
   108             'lin2mu','line','lines','linspace','listdlg','loadobj','log',
   105 							'single',
   109             'log10','log2','loglog','logm','logspace','lower','lscov','lu',
   106 							'superiorto',
   110             'luinc','magic','mat2str','material','max','mean','median','menu',
   107 							'uint8',
   111             'menuedit','mesh','meshc','meshgrid','min','mod','msgbox','mu2lin',
   108 							'int16',
   112             'NaN','nargchk','nargin','nargout','nchoosek','ndgrid','ndims',
   109 							'uint32',
   113             'newplot','nextpow2','nnls','nnz','nonzeros','norm','normest','now',
   110 							'dbclear',
   114             'null','num2cell','num2str','nzmax','ode113,','ode15s,','ode23s,',
   111 							'dbcont',
   115             'ode23t,','ode23tb','ode45,','odefile','odeget','odeset','ones',
   112 							'dbdown',
   116             'orient','orth','pagedlg','pareto','pascal','patch','pause',
   113 							'dbmex',
   117             'pbaspect','pcg','pcolor','peaks','perms','permute','pi','pie',
   114 							'dbquit',
   118             'pie3','pinv','plot','plot3','plotmatrix','plotyy','pol2cart',
   115 							'dbstack',
   119             'polar','poly','polyarea','polyder','polyeig','polyfit','polyval',
   116 							'dbstatus',
   120             'polyvalm','pow2','primes','print','printdlg','printopt','prism',
   117 							'dbstep',
   121             'prod','propedit','qmr','qr','qrdelete','qrinsert','qrupdate',
   118 							'dbstop',
   122             'quad','questdlg','quiver','quiver3','qz','rand','randn','randperm',
   119 							'dbtype',
   123             'rank','rat','rats','rbbox','rcond','real','realmax','realmin',
   120 							'dbup',
   124             'rectangle','reducepatch','reducevolume','refresh','rem','repmat',
   121 								
   125             'reset','reshape','residue','rgb2hsv','rgbplot','ribbon','rmfield',
   122 							'blkdiag',
   126             'roots','rose','rot90','rotate','rotate3d','round','rref',
   123 							'eye',
   127             'rrefmovie','rsf2csf','saveobj','scatter','scatter3','schur',
   124 							'linspace',
   128             'script','sec','sech','selectmoveresize','semilogx','semilogy',
   125 							'logspace',
   129             'set','setdiff','setfield','setxor','shading','shg','shiftdim',
   126 							'ones',
   130             'shrinkfaces','sign','sin','single','sinh','slice','smooth3','sort',
   127 							'rand',
   131             'sortrows','sound','soundsc','spalloc','sparse','spconvert',
   128 							'randn',
   132             'spdiags','specular','speye','spfun','sph2cart','sphere','spinmap',
   129 							'zeros',
   133             'spline','spones','spparms','sprand','sprandn','sprandsym','spring',
   130 							'ans',
   134             'sprintf','sqrt','sqrtm','squeeze','sscanf','stairs','std','stem',
   131 							'computer',
   135             'stem3','str2double','str2num','strcat','strcmp','strcmpi',
   132 							'eps',
   136             'stream2','stream3','streamline','strings','strjust','strmatch',
   133 							'flops',
   137             'strncmp','strrep','strtok','struct','struct2cell','strvcat',
   134 							'i',
   138             'sub2ind','subplot','subspace','subvolume','sum','summer',
   135 							'Inf',
   139             'superiorto','surf','surf2patch','surface','surfc','surfl',
   136 							'inputname',
   140             'surfnorm','svd','svds','symmmd','symrcm','symvar','tan','tanh',
   137 							'j',
   141             'texlabel','text Create','textread','textwrap','tic','title','toc',
   138 							'NaN',
   142             'toeplitz','trace','trapz','tril','trimesh','trisurf','triu',
   139 							'nargin',
   143             'tsearch','uicontext Create','uicontextmenu','uicontrol',
   140 							'nargout',
   144             'uigetfile','uimenu','uint32','uint8','uiputfile','uiresume',
   141 							'pi',
   145             'uisetcolor','uisetfont','uiwait Used','union','unique','unwrap',
   142 							'realmax',
   146             'upper','var','varargin','varargout','vectorize','view','viewmtx',
   143 							'realmin',
   147             'voronoi','waitbar','waitforbuttonpress','warndlg','warning',
   144 							'varargin',
   148             'waterfall','wavread','wavwrite','weekday','whitebg','wilkinson',
   145 							'varargout',
   149             'winter','wk1read','wk1write','xlabel','xlim','ylabel','ylim',
   146 							'calendar',
   150             'zeros','zlabel','zlim','zoom',
   147 							'clock',
   151             //'[Keywords 6]',
   148 							'cputime',
   152             'addpath','cd','clear','copyfile','delete','diary','dir','disp',
   149 							'date',
   153             'doc','docopt','echo','edit','fileparts','format','fullfile','help',
   150 							'datenum',
   154             'helpdesk','helpwin','home','inmem','lasterr','lastwarn','length',
   151 							'datestr',
   155             'load','lookfor','ls','matlabrc','matlabroot','mkdir','mlock',
   152 							'datevec',
   156             'more','munlock','open','openvar','pack','partialpath','path',
   153 							'eomday',
   157             'pathtool','profile','profreport','pwd','quit','rmpath','save',
   154 							'etime',
   158             'saveas','size','tempdir','tempname','type','ver','version','web',
   155 							'now',
   159             'what','whatsnew','which','who','whos','workspace'
   156 							'tic',
   160             )
   157 							'toc',
   161         ),
   158 							'weekday',
   162     'SYMBOLS' => array(
   159 							'cat',
   163         '...'
   160 							'diag',
   164         ),
   161 							'fliplr',
   165     'CASE_SENSITIVE' => array(
   162 							'flipud',
   166         GESHI_COMMENTS => false,
   163 							'repmat',
   167         1 => false,
   164 							'reshape',
   168         2 => false,
   165 							'rot90',
   169         //3 => false,
   166 							'tril',
   170         //4 => false,
   167 							'triu',
   171         ),
   168 							'compan',
   172     'STYLES' => array(
   169 							'gallery',
   173         'KEYWORDS' => array(
   170 							'hadamard',
   174             1 => 'color: #0000FF;',
   171 							'hankel',
       
   172 							'hilb',
       
   173 							'invhilb',
       
   174 							'magic',
       
   175 							'pascal',
       
   176 							'toeplitz',
       
   177 							'wilkinson',
       
   178 							'abs',
       
   179 							'acos',
       
   180 							'acosh',
       
   181 							'acot',
       
   182 							'acoth',
       
   183 							'acsc',
       
   184 							'acsch',
       
   185 							'angle',
       
   186 							'asec',
       
   187 							'asech',
       
   188 							'asin',
       
   189 							'asinh',
       
   190 							'atan',
       
   191 							'atanh',
       
   192 							'atan2',
       
   193 							'ceil',
       
   194 							'complex',
       
   195 							'conj',
       
   196 							'cos',
       
   197 							'cosh',
       
   198 							'cot',
       
   199 							'coth',
       
   200 							'csc',
       
   201 							'csch',
       
   202 							'exp',
       
   203 							'fix',
       
   204 							'floor',
       
   205 							'gcd',
       
   206 							'imag',
       
   207 							'lcm',
       
   208 							'log',
       
   209 							'log2',
       
   210 							'log10',
       
   211 							'mod',
       
   212 							'nchoosek',
       
   213 							'real',
       
   214 							'rem',
       
   215 							'round',
       
   216 							'sec',
       
   217 							'sech',
       
   218 							'sign',
       
   219 							'sin',
       
   220 							'sinh',
       
   221 							'sqrt',
       
   222 							'tan',
       
   223 							'tanh',
       
   224 							'airy',
       
   225 							'besselh',
       
   226 							'besseli',
       
   227 							'besselk',
       
   228 							'besselj',
       
   229 							'Bessely',
       
   230 							'beta',
       
   231 							'betainc',
       
   232 							'betaln',
       
   233 							'ellipj',
       
   234 							'ellipke',
       
   235 							'erf',
       
   236 							'erfc',
       
   237 							'erfcx',
       
   238 							'erfiny',
       
   239 							'expint',
       
   240 							'factorial',
       
   241 							'gamma',
       
   242 							'gammainc',
       
   243 							'gammaln',
       
   244 							'legendre',
       
   245 							'pow2',
       
   246 							'rat',
       
   247 							'rats',
       
   248 							'cart2pol',
       
   249 							'cart2sph',
       
   250 							'pol2cart',
       
   251 							'sph2cart',
       
   252 							'abs',
       
   253 							'eval',
       
   254 							'real',
       
   255 							'strings',
       
   256 							'deblank',
       
   257 							'findstr',
       
   258 							'lower',
       
   259 							'strcat',
       
   260 							'strcmp',
       
   261 							'strcmpi',
       
   262 							'strjust',
       
   263 							'strmatch',
       
   264 							'strncmp',
       
   265 							'strrep',
       
   266 							'strtok',
       
   267 							'strvcat',
       
   268 							'symvar',
       
   269 							'texlabel',
       
   270 							'upper',
       
   271 							'char',
       
   272 							'int2str',
       
   273 							'mat2str',
       
   274 							'num2str',
       
   275 							'sprintf',
       
   276 							'sscanf',
       
   277 							'str2double',
       
   278 							'str2num',
       
   279 							'bin2dec',
       
   280 							'dec2bin',
       
   281 							'dec2hex',
       
   282 							'hex2dec',
       
   283 							'hex2num',
       
   284 							'fclose',
       
   285 							'fopen',
       
   286 							'fread',
       
   287 							'fwrite',
       
   288 							'fgetl',
       
   289 							'fgets',
       
   290 							'fprintf',
       
   291 							'fscanf',
       
   292 							'feof',
       
   293 							'ferror',
       
   294 							'frewind',
       
   295 							'fseek',
       
   296 							'ftell',
       
   297 							'sprintf',
       
   298 							'sscanf',
       
   299 							'dlmread',
       
   300 							'dlmwrite',
       
   301 							'hdf',
       
   302 							'imfinfo',
       
   303 							'imread',
       
   304 							'imwrite',
       
   305 							'textread',
       
   306 							'wk1read',
       
   307 							'wk1write',
       
   308 							'bitand',
       
   309 							'bitcmp',
       
   310 							'bitor',
       
   311 							'bitmax',
       
   312 							'bitset',
       
   313 							'bitshift',
       
   314 							'bitget',
       
   315 							'bitxor',
       
   316 							'fieldnames',
       
   317 							'getfield',
       
   318 							'rmfield',
       
   319 							'setfield',
       
   320 							'struct',
       
   321 							'struct2cell',
       
   322 							'class',
       
   323 							'isa',
       
   324 							'cell',
       
   325 							'cellfun',
       
   326 							'cellstr',
       
   327 							'cell2struct',
       
   328 							'celldisp',
       
   329 							'cellplot',
       
   330 							'num2cell',
       
   331 							'cat',
       
   332 							'flipdim',
       
   333 							'ind2sub',
       
   334 							'ipermute',
       
   335 							'ndgrid',
       
   336 							'ndims',
       
   337 							'permute',
       
   338 							'reshape',
       
   339 							'shiftdim',
       
   340 							'squeeze',
       
   341 							'sub2ind',
       
   342 							'cond',
       
   343 							'condeig',
       
   344 							'det',
       
   345 							'norm',
       
   346 							'null',
       
   347 							'orth',
       
   348 							'rank',
       
   349 							'rcond',
       
   350 							'rref',
       
   351 							'rrefmovie',
       
   352 							'subspace',
       
   353 							'trace',
       
   354 							'chol',
       
   355 							'inv',
       
   356 							'lscov',
       
   357 							'lu',
       
   358 							'nnls',
       
   359 							'pinv',
       
   360 							'qr',
       
   361 							'balance',
       
   362 							'cdf2rdf',
       
   363 							'eig',
       
   364 							'gsvd',
       
   365 							'hess',
       
   366 							'poly',
       
   367 							'qz',
       
   368 							'rsf2csf',
       
   369 							'schur',
       
   370 							'svd',
       
   371 							'expm',
       
   372 							'funm',
       
   373 							'logm',
       
   374 							'sqrtm',
       
   375 							'qrdelete',
       
   376 							'qrinsert',
       
   377 							'bar',
       
   378 							'barh',
       
   379 							'hist',
       
   380 							'hold',
       
   381 							'loglog',
       
   382 							'pie',
       
   383 							'plot',
       
   384 							'polar',
       
   385 							'semilogx',
       
   386 							'semilogy',
       
   387 							'subplot',
       
   388 							'bar3',
       
   389 							'bar3h',
       
   390 							'comet3',
       
   391 							'cylinder',
       
   392 							'fill3',
       
   393 							'plot3',
       
   394 							'quiver3',
       
   395 							'slice',
       
   396 							'sphere',
       
   397 							'stem3',
       
   398 							'waterfall',
       
   399 							'clabel',
       
   400 							'datetick',
       
   401 							'grid',
       
   402 							'gtext',
       
   403 							'legend',
       
   404 							'plotyy',
       
   405 							'title',
       
   406 							'xlabel',
       
   407 							'ylabel',
       
   408 							'zlabel',
       
   409 							'contour',
       
   410 							'contourc',
       
   411 							'contourf',
       
   412 							'hidden',
       
   413 							'meshc',
       
   414 							'mesh',
       
   415 							'peaks',
       
   416 							'surf',
       
   417 							'surface',
       
   418 							'surfc',
       
   419 							'surfl',
       
   420 							'trimesh',
       
   421 							'trisurf',
       
   422 							'coneplot',
       
   423 							'contourslice',
       
   424 							'isocaps',
       
   425 							'isonormals',
       
   426 							'isosurface',
       
   427 							'reducepatch',
       
   428 							'reducevolume',
       
   429 							'shrinkfaces',
       
   430 							'smooth3',
       
   431 							'stream2',
       
   432 							'stream3',
       
   433 							'streamline',
       
   434 							'surf2patch',
       
   435 							'subvolume',
       
   436 							'griddata',
       
   437 							'meshgrid',
       
   438 							'area',
       
   439 							'box',
       
   440 							'comet',
       
   441 							'compass',
       
   442 							'errorbar',
       
   443 							'ezcontour',
       
   444 							'ezcontourf',
       
   445 							'ezmesh',
       
   446 							'ezmeshc',
       
   447 							'ezplot',
       
   448 							'ezplot3',
       
   449 							'ezpolar',
       
   450 							'ezsurf',
       
   451 							'ezsurfc',
       
   452 							'feather',
       
   453 							'fill',
       
   454 							'fplot',
       
   455 							'pareto',
       
   456 							'pie3',
       
   457 							'plotmatrix',
       
   458 							'pcolor',
       
   459 							'rose',
       
   460 							'quiver',
       
   461 							'ribbon',
       
   462 							'stairs',
       
   463 							'scatter',
       
   464 							'scatter3',
       
   465 							'stem',
       
   466 							'convhull',
       
   467 							'delaunay',
       
   468 							'dsearch',
       
   469 							'inpolygon',
       
   470 							'polyarea',
       
   471 							'tsearch',
       
   472 							'voronoi',
       
   473 							'camdolly',
       
   474 							'camlookat',
       
   475 							'camorbit',
       
   476 							'campan',
       
   477 							'campos',
       
   478 							'camproj',
       
   479 							'camroll',
       
   480 							'camtarget',
       
   481 							'camup',
       
   482 							'camva',
       
   483 							'camzoom',
       
   484 							'daspect',
       
   485 							'pbaspect',
       
   486 							'view',
       
   487 							'viewmtx',
       
   488 							'xlim',
       
   489 							'ylim',
       
   490 							'zlim',
       
   491 							'camlight',
       
   492 							'diffuse',
       
   493 							'lighting',
       
   494 							'lightingangle',
       
   495 							'material',
       
   496 							'specular',
       
   497 							'brighten',
       
   498 							'bwcontr',
       
   499 							'caxis',
       
   500 							'colorbar',
       
   501 							'colorcube',
       
   502 							'colordef',
       
   503 							'colormap',
       
   504 							'graymon',
       
   505 							'hsv2rgb',
       
   506 							'rgb2hsv',
       
   507 							'rgbplot',
       
   508 							'shading',
       
   509 							'spinmap',
       
   510 							'surfnorm',
       
   511 							'whitebg',
       
   512 							'autumn',
       
   513 							'bone',
       
   514 							'contrast',
       
   515 							'cool',
       
   516 							'copper',
       
   517 							'flag',
       
   518 							'gray',
       
   519 							'hot',
       
   520 							'hsv',
       
   521 							'jet',
       
   522 							'lines',
       
   523 							'prism',
       
   524 							'spring',
       
   525 							'summer',
       
   526 							'winter',
       
   527 							'orient',
       
   528 							'print',
       
   529 							'printopt',
       
   530 							'saveas',
       
   531 							'copyobj',
       
   532 							'findobj',
       
   533 							'gcbo',
       
   534 							'gco',
       
   535 							'get',
       
   536 							'rotate',
       
   537 							'ishandle',
       
   538 							'set',
       
   539 							'axes',
       
   540 							'figure',
       
   541 							'image',
       
   542 							'light',
       
   543 							'line',
       
   544 							'patch',
       
   545 							'rectangle',
       
   546 							'surface',
       
   547 							'text Create',
       
   548 							'uicontext Create',
       
   549 							'capture',
       
   550 							'clc',
       
   551 							'clf',
       
   552 							'clg',
       
   553 							'close',
       
   554 							'gcf',
       
   555 							'newplot',
       
   556 							'refresh',
       
   557 							'saveas',
       
   558 							'axis',
       
   559 							'cla',
       
   560 							'gca',
       
   561 							'propedit',
       
   562 							'reset',
       
   563 							'rotate3d',
       
   564 							'selectmoveresize',
       
   565 							'shg',
       
   566 							'ginput',
       
   567 							'zoom',
       
   568 							'dragrect',
       
   569 							'drawnow',
       
   570 							'rbbox',
       
   571 							'dialog',
       
   572 							'errordlg',
       
   573 							'helpdlg',
       
   574 							'inputdlg',
       
   575 							'listdlg',
       
   576 							'msgbox',
       
   577 							'pagedlg',
       
   578 							'printdlg',
       
   579 							'questdlg',
       
   580 							'uigetfile',
       
   581 							'uiputfile',
       
   582 							'uisetcolor',
       
   583 							'uisetfont',
       
   584 							'warndlg',
       
   585 							'menu',
       
   586 							'menuedit',
       
   587 							'uicontextmenu',
       
   588 							'uicontrol',
       
   589 							'uimenu',
       
   590 							'dragrect',
       
   591 							'findfigs',
       
   592 							'gcbo',
       
   593 							'rbbox',
       
   594 							'selectmoveresize',
       
   595 							'textwrap',
       
   596 							'uiresume',
       
   597 							'uiwait Used',
       
   598 							'waitbar',
       
   599 							'waitforbuttonpress',
       
   600 							'convhull',
       
   601 							'cumprod',
       
   602 							'cumsum',
       
   603 							'cumtrapz',
       
   604 							'delaunay',
       
   605 							'dsearch',
       
   606 							'factor',
       
   607 							'inpolygon',
       
   608 							'max',
       
   609 							'mean',
       
   610 							'median',
       
   611 							'min',
       
   612 							'perms',
       
   613 							'polyarea',
       
   614 							'primes',
       
   615 							'prod',
       
   616 							'sort',
       
   617 							'sortrows',
       
   618 							'std',
       
   619 							'sum',
       
   620 							'trapz',
       
   621 							'tsearch',
       
   622 							'var',
       
   623 							'voronoi',
       
   624 							'del2',
       
   625 							'diff',
       
   626 							'gradient',
       
   627 							'corrcoef',
       
   628 							'cov',
       
   629 							'conv',
       
   630 							'conv2',
       
   631 							'deconv',
       
   632 							'filter',
       
   633 							'filter2',
       
   634 							'abs',
       
   635 							'angle',
       
   636 							'cplxpair',
       
   637 							'fft',
       
   638 							'fft2',
       
   639 							'fftshift',
       
   640 							'ifft',
       
   641 							'ifft2',
       
   642 							'ifftn',
       
   643 							'ifftshift',
       
   644 							'nextpow2',
       
   645 							'unwrap',
       
   646 							'cross',
       
   647 							'intersect',
       
   648 							'ismember',
       
   649 							'setdiff',
       
   650 							'setxor',
       
   651 							'union',
       
   652 							'unique',
       
   653 							'conv',
       
   654 							'deconv',
       
   655 							'poly',
       
   656 							'polyder',
       
   657 							'polyeig',
       
   658 							'polyfit',
       
   659 							'polyval',
       
   660 							'polyvalm',
       
   661 							'residue',
       
   662 							'roots',
       
   663 							'griddata',
       
   664 							'interp1',
       
   665 							'interp2',
       
   666 							'interp3',
       
   667 							'interpft',
       
   668 							'interpn',
       
   669 							'meshgrid',
       
   670 							'ndgrid',
       
   671 							'spline',
       
   672 							'dblquad',
       
   673 							'fmin',
       
   674 							'fmins',
       
   675 							'fzero',
       
   676 							'ode45,',
       
   677 							'ode113,',
       
   678 							'ode15s,',
       
   679 							'ode23s,',
       
   680 							'ode23t,',
       
   681 							'ode23tb',
       
   682 							'odefile',
       
   683 							'odeget',
       
   684 							'odeset',
       
   685 							'quad,',
       
   686 							'vectorize',
       
   687 							'spdiags',
       
   688 							'speye',
       
   689 							'sprand',
       
   690 							'sprandn',
       
   691 							'sprandsym',
       
   692 							'find',
       
   693 							'full',
       
   694 							'sparse',
       
   695 							'spconvert',
       
   696 							'nnz',
       
   697 							'nonzeros',
       
   698 							'nzmax',
       
   699 							'spalloc',
       
   700 							'spfun',
       
   701 							'spones',
       
   702 							'colmmd',
       
   703 							'colperm',
       
   704 							'dmperm',
       
   705 							'randperm',
       
   706 							'symmmd',
       
   707 							'symrcm',
       
   708 							'condest',
       
   709 							'normest',
       
   710 							'bicg',
       
   711 							'bicgstab',
       
   712 							'cgs',
       
   713 							'cholinc',
       
   714 							'cholupdate',
       
   715 							'gmres',
       
   716 							'luinc',
       
   717 							'pcg',
       
   718 							'qmr',
       
   719 							'qr',
       
   720 							'qrdelete',
       
   721 							'qrinsert',
       
   722 							'qrupdate',
       
   723 							'eigs',
       
   724 							'svds',
       
   725 							'spparms',
       
   726 							'lin2mu',
       
   727 							'mu2lin',
       
   728 							'sound',
       
   729 							'soundsc',
       
   730 							'auread',
       
   731 							'auwrite',
       
   732 							'wavread',
       
   733 							'wavwrite',
       
   734 							'[Keywords 6]',
       
   735 							'addpath',
       
   736 							'doc',
       
   737 							'docopt',
       
   738 							'help',
       
   739 							'helpdesk',
       
   740 							'helpwin',
       
   741 							'lasterr',
       
   742 							'lastwarn',
       
   743 							'lookfor',
       
   744 							'partialpath',
       
   745 							'path',
       
   746 							'pathtool',
       
   747 							'profile',
       
   748 							'profreport',
       
   749 							'rmpath',
       
   750 							'type',
       
   751 							'ver',
       
   752 							'version',
       
   753 							'web',
       
   754 							'what',
       
   755 							'whatsnew',
       
   756 							'which',
       
   757 							'clear',
       
   758 							'disp',
       
   759 							'length',
       
   760 							'load',
       
   761 							'mlock',
       
   762 							'munlock',
       
   763 							'openvar',
       
   764 							'pack',
       
   765 							'save',
       
   766 							'saveas',
       
   767 							'size',
       
   768 							'who',
       
   769 							'whos',
       
   770 							'workspace',
       
   771 							'clc',
       
   772 							'echo',
       
   773 							'format',
       
   774 							'home',
       
   775 							'more',
       
   776 							'cd',
       
   777 							'copyfile',
       
   778 							'delete',
       
   779 							'diary',
       
   780 							'dir',
       
   781 							'edit',
       
   782 							'fileparts',
       
   783 							'fullfile',
       
   784 							'inmem',
       
   785 							'ls',
       
   786 							'matlabroot',
       
   787 							'mkdir',
       
   788 							'open',
       
   789 							'pwd',
       
   790 							'tempdir',
       
   791 							'tempname',
       
   792 							'matlabrc',
       
   793 							'quit',                            
       
   794 )
       
   795 		),
       
   796 	'SYMBOLS' => array( 
       
   797 		'...' 
       
   798 		),
       
   799 	'CASE_SENSITIVE' => array(
       
   800 		GESHI_COMMENTS => true,
       
   801 		1 => false,
       
   802 		2 => false,
       
   803 		//3 => false,
       
   804 		//4 => false,
       
   805 		),
       
   806 	'STYLES' => array(
       
   807 		'KEYWORDS' => array(
       
   808 			1 => 'color: #0000FF;',
       
   809             2 => 'color: #0000FF;'
   175             2 => 'color: #0000FF;'
   810 			),
   176             ),
   811 		'COMMENTS' => array(
   177         'COMMENTS' => array(
   812 			1 => 'color: #228B22;',
   178             1 => 'color: #228B22;',
   813 			),
   179             2 => 'color:#A020F0;'
   814 		'ESCAPE_CHAR' => array(
   180             ),
       
   181         'ESCAPE_CHAR' => array(
   815             0 => ''
   182             0 => ''
   816 			),
   183             ),
   817 		'BRACKETS' => array(
   184         'BRACKETS' => array(
   818             0 => 'color: #080;'
   185             0 => 'color: #080;'
   819 			),
   186             ),
   820 		'STRINGS' => array(
   187         'STRINGS' => array(
   821 			//0 => 'color: #A020F0;'
   188             //0 => 'color: #A020F0;'
   822 			),
   189             ),
   823 		'NUMBERS' => array(
   190         'NUMBERS' => array(
   824             0 => 'color: #33f;'
   191             0 => 'color: #33f;'
   825 			),
   192             ),
   826 		'METHODS' => array(
   193         'METHODS' => array(
   827             1 => '',
   194             1 => '',
   828             2 => ''
   195             2 => ''
   829 			),
   196             ),
   830 		'SYMBOLS' => array(
   197         'SYMBOLS' => array(
   831             0 => 'color: #080;'
   198             0 => 'color: #080;'
   832 			),
   199             ),
   833 		'REGEXPS' => array(
   200         'REGEXPS' => array(
   834             0 => 'color:#A020F0;'
   201             0 => 'color: #33f;'
   835 			),
   202             ),
   836 		'SCRIPT' => array(
   203         'SCRIPT' => array(
   837             0 => ''
   204             0 => ''
   838 			)
   205             )
   839 		),
   206         ),
   840 	'URLS' => array(
   207     'URLS' => array(
   841 		1 => '',
   208         1 => '',
   842 		2 => 'http://www.mathworks.com/access/helpdesk/help/techdoc/ref/{FNAME}.html',
   209         2 => 'http://www.mathworks.com/access/helpdesk/help/techdoc/ref/{FNAMEL}.html'
   843 		3 => '',
   210         ),
   844 		4 => ''
   211     'OOLANG' => true,
   845 		),
   212     'OBJECT_SPLITTERS' => array(
   846 	'OOLANG' => true,
   213         1 => '.',
   847 	'OBJECT_SPLITTERS' => array(
   214         2 => '::'
   848 		1 => '.',
   215         ),
   849 		2 => '::'
   216     'REGEXPS' => array(
   850 		),
   217         //Complex numbers
   851 	'REGEXPS' => array(
   218         0 => '(?<![\\w])[+-]?[\\d]*([\\d]\\.|\\.[\\d])?[\\d]*[ij](?![\\w])'
   852         0 => array(
   219         ),
   853             GESHI_SEARCH => "([^\w])'([^\\n\\r']*)'",
   220     'STRICT_MODE_APPLIES' => GESHI_NEVER,
   854             GESHI_REPLACE => '\\2',
   221     'SCRIPT_DELIMITERS' => array(
   855             GESHI_MODIFIERS => '',
   222         ),
   856             GESHI_BEFORE => "\\1'",
   223     'HIGHLIGHT_STRICT_BLOCK' => array(
   857             GESHI_AFTER => "'"
   224         )
   858 		)
       
   859 		),
       
   860 	'STRICT_MODE_APPLIES' => GESHI_NEVER,
       
   861 	'SCRIPT_DELIMITERS' => array(
       
   862 		),
       
   863 	'HIGHLIGHT_STRICT_BLOCK' => array(
       
   864 		)
       
   865 );
   225 );
   866 
   226 
   867 ?>
   227 ?>