home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / ftes46b5.zip / ftes46b5 / config / m_ldsgml.fte < prev    next >
Text File  |  1997-05-30  |  2KB  |  95 lines

  1. # linuxdoc-sgml
  2.  
  3. colorize LDSGML {
  4.     SyntaxParser = 'SIMPLE';
  5.     
  6.     color {
  7.         { 'Normal',     'Editor_Default' },
  8.         { 'Command',    'Markup_Default' },
  9.         { 'String',     'Markup_String' },
  10.         { 'Symbol',     'Markup_Symbol' },
  11.         { 'Tag',        'Markup_Tag' },
  12.         { 'Comment',    'Markup_Comment' },
  13.         { 'Special',    'Markup_Special' },
  14.     };
  15.  
  16.     keyword "Editor_Keywords" { # should be HTML 3.2 complete
  17.         "doctype",
  18.         "article",
  19.         "title", "author", "date",
  20.         "abstract",
  21.         "toc",
  22.         "sect","sect1", "sect2", "sect3", "sect4",
  23.  
  24.         "label", "ref",
  25.  
  26.         "url", "htmlurl",
  27.  
  28.         "tt", "bf", "em",
  29.  
  30.         "itemize", "enum", "descrip",
  31.         "item", "tag",
  32.  
  33.         "p",
  34.         
  35.         "code", "verb", "tscreen",
  36.             
  37.     };
  38.     keyword "Editor_Keywords2" {
  39.         "id", "url", "name",
  40.     };
  41.  
  42.     h_state 0 { 'Normal' }
  43.     h_trans { 5, '<', '<!--', 'Comment' }
  44.     h_trans { 7, '<', '</', 'Command' }
  45.     h_trans { 1, '<', '<', 'Command' }
  46.     h_trans { 2, '<', '&', 'Symbol' }
  47.  
  48.     h_state 1 { 'Command' }
  49.     h_trans { 0, '>', '>', 'Command' }
  50.     h_trans { 3, '<', '\'', 'String' }
  51.     h_trans { 4, '<', '"', 'String' }
  52.     h_trans { 8, '>', '/', 'Command' }
  53.     h_wtype { -1, -1, -1, 'i', 'a-zA-Z0-9_\-' }
  54.  
  55.     h_state 2 { 'Symbol' }
  56.     h_trans { 0, '>', ';', 'Symbol' }
  57.     h_trans { 0, '-S', '#a-zA-Z0-9', 'Symbol' }
  58.  
  59.     h_state 3 { 'String' }
  60.     h_trans { 1, '>', '\'', 'String' }
  61.  
  62.     h_state 4 { 'String' }
  63.     h_trans { 1, '>', '"', 'String' }
  64.  
  65.     h_state 5 { 'Comment' }
  66.     h_trans { 6, '>', '--', 'Comment' }
  67.  
  68.     h_state 6 { 'Special' }
  69.     h_trans { 5, '>', '--', 'Comment' }
  70.     h_trans { 0, '>', '>', 'Comment' }
  71.  
  72.     h_state 7 { 'Command' }
  73.     h_trans { 0, '>', '>', 'Command' }
  74.     h_trans { 3, '<', '\'', 'String' }
  75.     h_trans { 4, '<', '"', 'String' }
  76.     h_wtype { -1, -1, -1, 'i', 'a-zA-Z0-9_\-' }
  77.  
  78.     h_state 8 { 'Tag' }
  79.     h_trans { 0, '>', '/', 'Command' }
  80. }
  81.  
  82. mode LDSGML: PLAIN {
  83.     FileNameRx          = /\.\c{SGML?}$/;
  84.     HilitOn             = 1;
  85.     Colorizer           = "LDSGML";
  86.     MultiLineHilit      = 1;
  87.     AutoHilitParen      = 1;
  88.  
  89.     RoutineRegexp       = /\c\<sect\d?\>/;
  90.  
  91.     SaveFolds           = 2;      # save fold info at end of line
  92.     CommentStart        = " <!--";
  93.     CommentEnd          = "-->";
  94. }
  95.