List Info

Thread: geshi-1.0.X/src/geshi matlab.php,1.9,1.10




geshi-1.0.X/src/geshi matlab.php,1.9,1.10
user name
2006-03-29 08:06:08
Update of /cvsroot/geshi/geshi-1.0.X/src/geshi
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22317/src/geshi

Modified Files:
	matlab.php 
Log Message:
Improvements by Olivier Verdier - transpose operator
supported, keywords added, links to matlab documentation.

Index: matlab.php
============================================================
=======
RCS file: /cvsroot/geshi/geshi-1.0.X/src/geshi/matlab.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** matlab.php	23 Mar 2006 09:35:31 -0000	1.9
--- matlab.php	29 Mar 2006 08:06:04 -0000	1.10
***************
*** 13,17 ****
   *
   * CHANGES
!  * -------
   * 2005/05/07 (1.0.0)
   *   -  First Release
--- 13,22 ----
   *
   * CHANGES
!  * -------
!  * 2006-03-25
!  *   - support for the transpose operator
!  *   - many keywords added
!  *   - links to the matlab documentation at mathworks
!  *      by: Olivier Verdier (olivier.verdierfree.fr)
   * 2005/05/07 (1.0.0)
   *   -  First Release
***************
*** 39,47 ****
  
  $language_data = array (
! 	'LANG_NAME' => 'M',
  	'COMMENT_SINGLE' => array(1 => '%'),
  	'COMMENT_MULTI' => array(),
  	'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
! 	'QUOTEMARKS' => array("'"),
  	'ESCAPE_CHAR' => '',
  	'KEYWORDS' => array(
--- 44,52 ----
  
  $language_data = array (
! 	'LANG_NAME' => 'Matlab M',
  	'COMMENT_SINGLE' => array(1 => '%'),
  	'COMMENT_MULTI' => array(),
  	'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
! 	'QUOTEMARKS' => array(),
  	'ESCAPE_CHAR' => '',
  	'KEYWORDS' => array(
***************
*** 50,54 ****
  			'function', 'global', 'if', 'otherwise',
'persistent', 'return', 
  			'switch', 'try', 'while','...'
! 			),
  		),
  	'SYMBOLS' => array( 
--- 55,798 ----
  			'function', 'global', 'if', 'otherwise',
'persistent', 'return', 
  			'switch', 'try', 'while','...'
! 			),
!         2 => array(
!                             'all',
! 							'any',
! 							'exist',
! 							'find',
! 							'is',
! 							'isa',
! 							'logical',
! 							'mislocked',
! 							
! 							'builtin',
! 							'eval',
! 							'evalc',
! 							'evalin',
! 							'feval',
! 							'function',
! 							'global',
! 							'nargchk',
! 							'persistent',
! 							'script',
! 							'break',
! 							'case',
! 							'catch',
! 							'else',
! 							'elseif',
! 							'end',
! 							'error',
! 							'for',
! 							'if',
! 							'otherwise',
! 							'return',
! 							'switch',
! 							'try',
! 							'warning',
! 							'while',
! 							'input',
! 							'keyboard',
! 							'menu',
! 							'pause',
! 							'class',
! 							'double',
! 							'inferiorto',
! 							'inline',
! 							'int8',
! 							'int16',
! 							'int32',
! 							'isa',
! 							'loadobj',
! 							'saveobj',
! 							'single',
! 							'superiorto',
! 							'uint8',
! 							'int16',
! 							'uint32',
! 							'dbclear',
! 							'dbcont',
! 							'dbdown',
! 							'dbmex',
! 							'dbquit',
! 							'dbstack',
! 							'dbstatus',
! 							'dbstep',
! 							'dbstop',
! 							'dbtype',
! 							'dbup',
! 								
! 							'blkdiag',
! 							'eye',
! 							'linspace',
! 							'logspace',
! 							'ones',
! 							'rand',
! 							'randn',
! 							'zeros',
! 							'ans',
! 							'computer',
! 							'eps',
! 							'flops',
! 							'i',
! 							'Inf',
! 							'inputname',
! 							'j',
! 							'NaN',
! 							'nargin',
! 							'nargout',
! 							'pi',
! 							'realmax',
! 							'realmin',
! 							'varargin',
! 							'varargout',
! 							'calendar',
! 							'clock',
! 							'cputime',
! 							'date',
! 							'datenum',
! 							'datestr',
! 							'datevec',
! 							'eomday',
! 							'etime',
! 							'now',
! 							'tic',
! 							'toc',
! 							'weekday',
! 							'cat',
! 							'diag',
! 							'fliplr',
! 							'flipud',
! 							'repmat',
! 							'reshape',
! 							'rot90',
! 							'tril',
! 							'triu',
! 							'compan',
! 							'gallery',
! 							'hadamard',
! 							'hankel',
! 							'hilb',
! 							'invhilb',
! 							'magic',
! 							'pascal',
! 							'toeplitz',
! 							'wilkinson',
! 							'abs',
! 							'acos',
! 							'acosh',
! 							'acot',
! 							'acoth',
! 							'acsc',
! 							'acsch',
! 							'angle',
! 							'asec',
! 							'asech',
! 							'asin',
! 							'asinh',
! 							'atan',
! 							'atanh',
! 							'atan2',
! 							'ceil',
! 							'complex',
! 							'conj',
! 							'cos',
! 							'cosh',
! 							'cot',
! 							'coth',
! 							'csc',
! 							'csch',
! 							'exp',
! 							'fix',
! 							'floor',
! 							'gcd',
! 							'imag',
! 							'lcm',
! 							'log',
! 							'log2',
! 							'log10',
! 							'mod',
! 							'nchoosek',
! 							'real',
! 							'rem',
! 							'round',
! 							'sec',
! 							'sech',
! 							'sign',
! 							'sin',
! 							'sinh',
! 							'sqrt',
! 							'tan',
! 							'tanh',
! 							'airy',
! 							'besselh',
! 							'besseli',
! 							'besselk',
! 							'besselj',
! 							'Bessely',
! 							'beta',
! 							'betainc',
! 							'betaln',
! 							'ellipj',
! 							'ellipke',
! 							'erf',
! 							'erfc',
! 							'erfcx',
! 							'erfiny',
! 							'expint',
! 							'factorial',
! 							'gamma',
! 							'gammainc',
! 							'gammaln',
! 							'legendre',
! 							'pow2',
! 							'rat',
! 							'rats',
! 							'cart2pol',
! 							'cart2sph',
! 							'pol2cart',
! 							'sph2cart',
! 							'abs',
! 							'eval',
! 							'real',
! 							'strings',
! 							'deblank',
! 							'findstr',
! 							'lower',
! 							'strcat',
! 							'strcmp',
! 							'strcmpi',
! 							'strjust',
! 							'strmatch',
! 							'strncmp',
! 							'strrep',
! 							'strtok',
! 							'strvcat',
! 							'symvar',
! 							'texlabel',
! 							'upper',
! 							'char',
! 							'int2str',
! 							'mat2str',
! 							'num2str',
! 							'sprintf',
! 							'sscanf',
! 							'str2double',
! 							'str2num',
! 							'bin2dec',
! 							'dec2bin',
! 							'dec2hex',
! 							'hex2dec',
! 							'hex2num',
! 							'fclose',
! 							'fopen',
! 							'fread',
! 							'fwrite',
! 							'fgetl',
! 							'fgets',
! 							'fprintf',
! 							'fscanf',
! 							'feof',
! 							'ferror',
! 							'frewind',
! 							'fseek',
! 							'ftell',
! 							'sprintf',
! 							'sscanf',
! 							'dlmread',
! 							'dlmwrite',
! 							'hdf',
! 							'imfinfo',
! 							'imread',
! 							'imwrite',
! 							'textread',
! 							'wk1read',
! 							'wk1write',
! 							'bitand',
! 							'bitcmp',
! 							'bitor',
! 							'bitmax',
! 							'bitset',
! 							'bitshift',
! 							'bitget',
! 							'bitxor',
! 							'fieldnames',
! 							'getfield',
! 							'rmfield',
! 							'setfield',
! 							'struct',
! 							'struct2cell',
! 							'class',
! 							'isa',
! 							'cell',
! 							'cellfun',
! 							'cellstr',
! 							'cell2struct',
! 							'celldisp',
! 							'cellplot',
! 							'num2cell',
! 							'cat',
! 							'flipdim',
! 							'ind2sub',
! 							'ipermute',
! 							'ndgrid',
! 							'ndims',
! 							'permute',
! 							'reshape',
! 							'shiftdim',
! 							'squeeze',
! 							'sub2ind',
! 							'cond',
! 							'condeig',
! 							'det',
! 							'norm',
! 							'null',
! 							'orth',
! 							'rank',
! 							'rcond',
! 							'rref',
! 							'rrefmovie',
! 							'subspace',
! 							'trace',
! 							'chol',
! 							'inv',
! 							'lscov',
! 							'lu',
! 							'nnls',
! 							'pinv',
! 							'qr',
! 							'balance',
! 							'cdf2rdf',
! 							'eig',
! 							'gsvd',
! 							'hess',
! 							'poly',
! 							'qz',
! 							'rsf2csf',
! 							'schur',
! 							'svd',
! 							'expm',
! 							'funm',
! 							'logm',
! 							'sqrtm',
! 							'qrdelete',
! 							'qrinsert',
! 							'bar',
! 							'barh',
! 							'hist',
! 							'hold',
! 							'loglog',
! 							'pie',
! 							'plot',
! 							'polar',
! 							'semilogx',
! 							'semilogy',
! 							'subplot',
! 							'bar3',
! 							'bar3h',
! 							'comet3',
! 							'cylinder',
! 							'fill3',
! 							'plot3',
! 							'quiver3',
! 							'slice',
! 							'sphere',
! 							'stem3',
! 							'waterfall',
! 							'clabel',
! 							'datetick',
! 							'grid',
! 							'gtext',
! 							'legend',
! 							'plotyy',
! 							'title',
! 							'xlabel',
! 							'ylabel',
! 							'zlabel',
! 							'contour',
! 							'contourc',
! 							'contourf',
! 							'hidden',
! 							'meshc',
! 							'mesh',
! 							'peaks',
! 							'surf',
! 							'surface',
! 							'surfc',
! 							'surfl',
! 							'trimesh',
! 							'trisurf',
! 							'coneplot',
! 							'contourslice',
! 							'isocaps',
! 							'isonormals',
! 							'isosurface',
! 							'reducepatch',
! 							'reducevolume',
! 							'shrinkfaces',
! 							'smooth3',
! 							'stream2',
! 							'stream3',
! 							'streamline',
! 							'surf2patch',
! 							'subvolume',
! 							'griddata',
! 							'meshgrid',
! 							'area',
! 							'box',
! 							'comet',
! 							'compass',
! 							'errorbar',
! 							'ezcontour',
! 							'ezcontourf',
! 							'ezmesh',
! 							'ezmeshc',
! 							'ezplot',
! 							'ezplot3',
! 							'ezpolar',
! 							'ezsurf',
! 							'ezsurfc',
! 							'feather',
! 							'fill',
! 							'fplot',
! 							'pareto',
! 							'pie3',
! 							'plotmatrix',
! 							'pcolor',
! 							'rose',
! 							'quiver',
! 							'ribbon',
! 							'stairs',
! 							'scatter',
! 							'scatter3',
! 							'stem',
! 							'convhull',
! 							'delaunay',
! 							'dsearch',
! 							'inpolygon',
! 							'polyarea',
! 							'tsearch',
! 							'voronoi',
! 							'camdolly',
! 							'camlookat',
! 							'camorbit',
! 							'campan',
! 							'campos',
! 							'camproj',
! 							'camroll',
! 							'camtarget',
! 							'camup',
! 							'camva',
! 							'camzoom',
! 							'daspect',
! 							'pbaspect',
! 							'view',
! 							'viewmtx',
! 							'xlim',
! 							'ylim',
! 							'zlim',
! 							'camlight',
! 							'diffuse',
! 							'lighting',
! 							'lightingangle',
! 							'material',
! 							'specular',
! 							'brighten',
! 							'bwcontr',
! 							'caxis',
! 							'colorbar',
! 							'colorcube',
! 							'colordef',
! 							'colormap',
! 							'graymon',
! 							'hsv2rgb',
! 							'rgb2hsv',
! 							'rgbplot',
! 							'shading',
! 							'spinmap',
! 							'surfnorm',
! 							'whitebg',
! 							'autumn',
! 							'bone',
! 							'contrast',
! 							'cool',
! 							'copper',
! 							'flag',
! 							'gray',
! 							'hot',
! 							'hsv',
! 							'jet',
! 							'lines',
! 							'prism',
! 							'spring',
! 							'summer',
! 							'winter',
! 							'orient',
! 							'print',
! 							'printopt',
! 							'saveas',
! 							'copyobj',
! 							'findobj',
! 							'gcbo',
! 							'gco',
! 							'get',
! 							'rotate',
! 							'ishandle',
! 							'set',
! 							'axes',
! 							'figure',
! 							'image',
! 							'light',
! 							'line',
! 							'patch',
! 							'rectangle',
! 							'surface',
! 							'text Create',
! 							'uicontext Create',
! 							'capture',
! 							'clc',
! 							'clf',
! 							'clg',
! 							'close',
! 							'gcf',
! 							'newplot',
! 							'refresh',
! 							'saveas',
! 							'axis',
! 							'cla',
! 							'gca',
! 							'propedit',
! 							'reset',
! 							'rotate3d',
! 							'selectmoveresize',
! 							'shg',
! 							'ginput',
! 							'zoom',
! 							'dragrect',
! 							'drawnow',
! 							'rbbox',
! 							'dialog',
! 							'errordlg',
! 							'helpdlg',
! 							'inputdlg',
! 							'listdlg',
! 							'msgbox',
! 							'pagedlg',
! 							'printdlg',
! 							'questdlg',
! 							'uigetfile',
! 							'uiputfile',
! 							'uisetcolor',
! 							'uisetfont',
! 							'warndlg',
! 							'menu',
! 							'menuedit',
! 							'uicontextmenu',
! 							'uicontrol',
! 							'uimenu',
! 							'dragrect',
! 							'findfigs',
! 							'gcbo',
! 							'rbbox',
! 							'selectmoveresize',
! 							'textwrap',
! 							'uiresume',
! 							'uiwait Used',
! 							'waitbar',
! 							'waitforbuttonpress',
! 							'convhull',
! 							'cumprod',
! 							'cumsum',
! 							'cumtrapz',
! 							'delaunay',
! 							'dsearch',
! 							'factor',
! 							'inpolygon',
! 							'max',
! 							'mean',
! 							'median',
! 							'min',
! 							'perms',
! 							'polyarea',
! 							'primes',
! 							'prod',
! 							'sort',
! 							'sortrows',
! 							'std',
! 							'sum',
! 							'trapz',
! 							'tsearch',
! 							'var',
! 							'voronoi',
! 							'del2',
! 							'diff',
! 							'gradient',
! 							'corrcoef',
! 							'cov',
! 							'conv',
! 							'conv2',
! 							'deconv',
! 							'filter',
! 							'filter2',
! 							'abs',
! 							'angle',
! 							'cplxpair',
! 							'fft',
! 							'fft2',
! 							'fftshift',
! 							'ifft',
! 							'ifft2',
! 							'ifftn',
! 							'ifftshift',
! 							'nextpow2',
! 							'unwrap',
! 							'cross',
! 							'intersect',
! 							'ismember',
! 							'setdiff',
! 							'setxor',
! 							'union',
! 							'unique',
! 							'conv',
! 							'deconv',
! 							'poly',
! 							'polyder',
! 							'polyeig',
! 							'polyfit',
! 							'polyval',
! 							'polyvalm',
! 							'residue',
! 							'roots',
! 							'griddata',
! 							'interp1',
! 							'interp2',
! 							'interp3',
! 							'interpft',
! 							'interpn',
! 							'meshgrid',
! 							'ndgrid',
! 							'spline',
! 							'dblquad',
! 							'fmin',
! 							'fmins',
! 							'fzero',
! 							'ode45,',
! 							'ode113,',
! 							'ode15s,',
! 							'ode23s,',
! 							'ode23t,',
! 							'ode23tb',
! 							'odefile',
! 							'odeget',
! 							'odeset',
! 							'quad,',
! 							'vectorize',
! 							'spdiags',
! 							'speye',
! 							'sprand',
! 							'sprandn',
! 							'sprandsym',
! 							'find',
! 							'full',
! 							'sparse',
! 							'spconvert',
! 							'nnz',
! 							'nonzeros',
! 							'nzmax',
! 							'spalloc',
! 							'spfun',
! 							'spones',
! 							'colmmd',
! 							'colperm',
! 							'dmperm',
! 							'randperm',
! 							'symmmd',
! 							'symrcm',
! 							'condest',
! 							'normest',
! 							'bicg',
! 							'bicgstab',
! 							'cgs',
! 							'cholinc',
! 							'cholupdate',
! 							'gmres',
! 							'luinc',
! 							'pcg',
! 							'qmr',
! 							'qr',
! 							'qrdelete',
! 							'qrinsert',
! 							'qrupdate',
! 							'eigs',
! 							'svds',
! 							'spparms',
! 							'lin2mu',
! 							'mu2lin',
! 							'sound',
! 							'soundsc',
! 							'auread',
! 							'auwrite',
! 							'wavread',
! 							'wavwrite',
! 							'[Keywords 6]',
! 							'addpath',
! 							'doc',
! 							'docopt',
! 							'help',
! 							'helpdesk',
! 							'helpwin',
! 							'lasterr',
! 							'lastwarn',
! 							'lookfor',
! 							'partialpath',
! 							'path',
! 							'pathtool',
! 							'profile',
! 							'profreport',
! 							'rmpath',
! 							'type',
! 							'ver',
! 							'version',
! 							'web',
! 							'what',
! 							'whatsnew',
! 							'which',
! 							'clear',
! 							'disp',
! 							'length',
! 							'load',
! 							'mlock',
! 							'munlock',
! 							'openvar',
! 							'pack',
! 							'save',
! 							'saveas',
! 							'size',
! 							'who',
! 							'whos',
! 							'workspace',
! 							'clc',
! 							'echo',
! 							'format',
! 							'home',
! 							'more',
! 							'cd',
! 							'copyfile',
! 							'delete',
! 							'diary',
! 							'dir',
! 							'edit',
! 							'fileparts',
! 							'fullfile',
! 							'inmem',
! 							'ls',
! 							'matlabroot',
! 							'mkdir',
! 							'open',
! 							'pwd',
! 							'tempdir',
! 							'tempname',
! 							'matlabrc',
! 							'quit',                            
! )
  		),
  	'SYMBOLS' => array( 
***************
*** 59,68 ****
  		1 => false,
  		2 => false,
! 		3 => false,
! 		4 => false,
  		),
  	'STYLES' => array(
  		'KEYWORDS' => array(
  			1 => 'color: #0000FF;',
  			),
  		'COMMENTS' => array(
--- 803,813 ----
  		1 => false,
  		2 => false,
! 		//3 => false,
! 		//4 => false,
  		),
  	'STYLES' => array(
  		'KEYWORDS' => array(
  			1 => 'color: #0000FF;',
+             2 => 'color: #0000FF;'
  			),
  		'COMMENTS' => array(
***************
*** 70,93 ****
  			),
  		'ESCAPE_CHAR' => array(
  			),
  		'BRACKETS' => array(
  			),
  		'STRINGS' => array(
! 			0 => 'color: #A020F0;'
  			),
  		'NUMBERS' => array(
  			),
  		'METHODS' => array(
  			),
  		'SYMBOLS' => array(
  			),
  		'REGEXPS' => array(
  			),
  		'SCRIPT' => array(
  			)
  		),
  	'URLS' => array(
  		1 => '',
! 		2 => '',
  		3 => '',
  		4 => ''
--- 815,846 ----
  			),
  		'ESCAPE_CHAR' => array(
+             0 => ''
  			),
  		'BRACKETS' => array(
+             0 => ''
  			),
  		'STRINGS' => array(
! 			//0 => 'color: #A020F0;'
  			),
  		'NUMBERS' => array(
+             0 => ''
  			),
  		'METHODS' => array(
+             1 => '',
+             2 => ''
  			),
  		'SYMBOLS' => array(
+             0 => ''
  			),
  		'REGEXPS' => array(
+             0 => 'color:#A020F0;'
  			),
  		'SCRIPT' => array(
+             0 => ''
  			)
  		),
  	'URLS' => array(
  		1 => '',
! 		2 => 'http://www.mathworks.com/access/helpdesk/help/techdoc/
ref/.html',
  		3 => '',
  		4 => ''
***************
*** 99,102 ****
--- 852,862 ----
  		),
  	'REGEXPS' => array(
+         0 => array(
+             GESHI_SEARCH =>
"([^\w])'([^\\n\\r']*)'",
+             GESHI_REPLACE => '\\2',
+             GESHI_MODIFIERS => '',
+             GESHI_BEFORE => "\\1'",
+             GESHI_AFTER => "'"
+ 		)
  		),
  	'STRICT_MODE_APPLIES' => GESHI_NEVER,



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking
scripting language
that extends applications into web and mobile media. Attend
the live webcast
and join the prime developer group breaking into this new
coding territory!
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
geshi-cvs mailing list
geshi-cvslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geshi-cvs

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )