home *** CD-ROM | disk | FTP | other *** search
Wrap
unit editconsts; interface uses Graphics; // needed for TTextAttributes constants such as clBlue; const CR = #13; LF = #10; CRLF = #13#10; TERMINATOR : char = '}'; SLASH : char = '\'; PARCODE = '\par '; KWCODE = '\fs16\b '; // bold for keywords COMMENTCODE = '\fs16\cf2\b '; // bold fuschia for comments STRINGCODE = '\fs16\cf1\b '; // blue bold for strings PLAINCODE = '\plain\fs16\cf0 '; // plain black for other text SPECIALRTFCHARS = ['{','}','\'] ; ALPHANUMERIC =['a'..'z', 'A'..'Z', '_', '0'..'9']; RTFHEADER = '{\rtf1\ansi\ansicpg1252\deff0\deftab720{\fonttbl{\f0\fswiss MS Sans Serif;}{\f1\froman\fcharset2 Symbol;}'+CRLF+'{\f2\fswiss MS Sans Serif;}{\f3\fswiss\fprq2 System;}}'+CRLF; RTFCTABLE = '{\colortbl\red0\green0\blue0;\red0\green0\blue255;\red255\green0\blue255;\red0\green128\blue0;}'+CRLF+'\deflang2057\pard\plain\f0\fs16\cf0 '; // Use these colours for on-the-fly colouring STRINGCOL = clBlue; STRINGSTYLE = [fsBold]; COMMENTCOL = clFuchsia; COMMENTSTYLE = [fsBold]; PLAINCOL = clBlack; PLAINSTYLE = []; KWCOL = clBlack; KWSTYLE = [fsBold]; NUMKEYWORDS = 50; Keywords : array[0..NUMKEYWORDS] of string = ( 'and', 'array', 'as', 'begin', 'case', 'class', 'const', 'constructor', 'destructor', 'div', 'do', 'downto', 'else', 'end', 'except', 'file', 'finally', 'for', 'function', 'if', 'implementation', 'in', 'inherited', 'interface', 'is', 'mod', 'nil', 'not', 'object', 'of', 'on', 'or', 'private', 'procedure', 'program', 'property', 'public', 'published', 'repeat', 'set', 'string', 'then', 'to', 'try', 'type', 'unit', 'until', 'uses', 'var', 'while', 'with'); implementation end.