I am interested in using PSPad to work with some RTF files, but I cannot seem to
get the highlighter to work.

Possibly because the RTF keywords dont typically have a space before or after
them?  They always have a backslash before them, and will either have a space,
or number, or nothing after them.  Sometimes they are enclosed in braces.

Here is an example:


{\rtf1\ansi
{\fonttbl
{\f0\fmodern Courier New;}}
{\colortbl
\red0\green0\blue0;\red255\green0\blue0;\red255\green0\blue0;\red0\green0\blue25
5;\red255\green0\blue255;\red255\green0\blue255;\red255\green255\blue0;\red0\gre
en0\blue0;}
{\stylesheet
{\s0\f0\fs26\fi0\li0\ri0\ql\tx1152\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6
480\tx7200\tx7920\sl-494\cxdouble Normal;}
{\s1\f0\fs26\fi0\li0\ri0\ql\tx1152\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6
480\tx7200\tx7920\sl-494\cxdouble Question;}
{\s2\f0\fs26\fi0\li0\ri0\ql\tx1152\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6
480\tx7200\tx7920\sl-494\cxdouble Contin Q;}
{\s3\f0\fs26\fi0\li0\ri0\ql\tx1152\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6
480\tx7200\tx7920\sl-494\cxdouble Answer;}
{\s4\f0\fs26\fi0\li0\ri0\ql\tx1152\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6
480\tx7200\tx7920\sl-494\cxdouble Contin A;}
{\s5\f0\fs26\fi0\li1152\ri0\ql\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\
tx7200\tx7920\tx8640\sl-494\cxdouble Colloquy;}
{\s6\f0\fs26\fi0\li0\ri0\ql\tx1152\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6
480\tx7200\tx7920\sl-247\cxsingle Single;}
{\s7\f0\fs26\fi0\li0\ri0\qc\tx1152\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6
480\tx7200\tx7920\sl-494\cxdouble Center;}
{\s8\f0\fs26\fi0\li0\ri0\ql\tx4680\tx5400\tx7200\tx7920\tx9360\tx10080\tx10800\t
x11520\tx12240\tx12960\sl-247\cxsingle Caption Box;}
}
\paperh15840\paperw12240\margl1944\margr864\margt1483\margb1871\sectd
}


-- 
<http://forum.pspad.com/read.php?2,46636,46636>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem