home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / fte0827.zip / config / m_ipf.fte < prev    next >
Text File  |  1999-05-16  |  3KB  |  82 lines

  1. colorize IPF { 
  2.     SyntaxParser = 'SIMPLE';
  3.     
  4.     color {
  5.         { 'Normal',     'Editor_Default' },
  6.         { 'Symbol',     'Markup_Symbol' },
  7.         { 'Tag',        'Markup_Tag' },
  8.         { 'Control',    'Markup_Control' },
  9.         { 'String',     'Markup_String' },
  10.     };
  11.  
  12.     keyword 'Editor_Keywords' {
  13.         'acviewport', 'artlink', 'eartlink', 'artwork',
  14.         'caution', 'ecaution', 'cgraphic', 'ecgraphic',
  15.         'color', 'ctrl', 'ctrldef', 'ectrldef', 'ddf', 'docprof',
  16.         'fig', 'efig', 'figcap', 'font', 'fn', 'efn',
  17.         'h1', 'h2', 'h3', 'h4', 'h5', 'h6',
  18.         'hp1', 'ehp1', 'hp2', 'ehp2', 'hp3', 'ehp3', 'hp4', 'ehp4',
  19.         'hp5', 'ehp5', 'hp6', 'ehp6', 'hp7', 'ehp7', 'hp8', 'ehp8',
  20.         'hp9', 'ehp9',
  21.         'i1', 'i2',
  22.         'hide', 'ehide', 'icmd', 'isyn', 'lines', 'elines',
  23.         'link', 'elink', 'lm', 'note', 'nt', 'ent', 'p', 'pbutton',
  24.         'rm', 'title', 'userdoc', 'euserdoc', 'warning', 'ewarning',
  25.         'xmp', 'exmp',
  26.         'dl', 'edl', 'dthd', 'ddhd', 'dt', 'dd', 'li', 'lp', 'ol',
  27.         'eol', 'parml', 'eparlm', 'pt', 'pd', 'sl', 'esl', 'table',
  28.         'etable', 'row', 'c', 'ul', 'eul',
  29.     };
  30.     keyword 'Editor_Keywords2' {
  31.         'dll', 'objectname', 'objectinfo', 'objectid',
  32.         'vpx', 'vpy', 'vpcx', 'vpcy',
  33.         'name', 'align', 'linkfile', 'runin', 'fit',
  34.         'text', 'fc', 'bc', 'ctrlid', 'controls', 'page',
  35.         'coverpage', 'res', 'compact', 'tsize', 'break',
  36.         'toc', 'ctrlarea', 'facename', 'size', 'codepage',
  37.         'id', 'global', 'tutorial', 'x', 'y', 'width', 'height',
  38.         'group', 'viewport', 'clear', 'titlebar', 'scroll',
  39.         'rules', 'nosearch', 'noprint', 'hide', 'ctrlrefid',
  40.         'key', 'roots', 'sortkey', 'refid', 'root', 'reftype',
  41.         'database', 'object', 'data', 'auto', 'dependent',
  42.         'split', 'margin', 'break', 'cols', 'rules', 'frame',
  43.         'face', 'left', 'right', 'center', 'index',
  44.     };
  45.  
  46.     h_state 0 { 'Normal' }
  47.     h_trans { 1, '^<', '.', 'Control' }
  48.     h_trans { 2, '<', ':', 'Tag' }
  49.     h_trans { 3, '<', '&', 'Symbol' }
  50.  
  51.     h_state 1 { 'Control' }
  52.     h_trans { 0, '$', '', 'Normal' }
  53.  
  54.     h_state 2 { 'Tag' }
  55.     h_trans { 5, '-s', 'a-zA-Z_', 'Tag' }
  56.     h_trans { 0, '>', '.', 'Tag' }
  57.     h_trans { 4, '<', '\'', 'String' }
  58.  
  59.     h_state 3 { 'Symbol' }
  60.     h_trans { 0, '>', '.', 'Symbol' }
  61.  
  62.     h_state 4 { 'String' }
  63.     h_trans { 2, '>', '\'', 'String' }
  64.  
  65.     h_state 5 { 'Tag' }
  66.     h_trans { 2, '$', '', 'Tag' }
  67.     h_wtype { 2, 2, 2, '', 'a-zA-Z0-9_' }
  68. }
  69.  
  70. mode IPF: PLAIN {                       # .IPF files
  71.     FileNameRx          = /\.\cIPF$/;
  72.     HilitOn             = 1;
  73.     Colorizer           = 'IPF';
  74.     MultiLineHilit      = 1;
  75.  
  76.     RoutineRegexp       = ':[Hh]\\d\\.';
  77.     
  78.     SaveFolds           = 1;      # save fold info at beginning of line
  79.     CommentStart        = '.*';
  80.     CommentEnd          = '';
  81. }
  82.