Here's the first approach:

;PSPad user HighLighter definition file

[Settings]
Name=Texinfo
HTMLGroup=0
Vectors=0
Label=0
FileType=.texi
CommentString=
IndentChar=
UnIndentChar=
TabWidth=0
CaseSensitive=1
EscString=0
EscChar=\
KeyWordChars=
CodeExplorer=ftUnknown
DocComment=

[KeyWords]
@acronym=
@b=
@cite=
@code=
@command=
@dfn=
@email=
@emph=
@env=
@file=
@i=
@kbd=
@key=
@option=
@r=
@samp=
@sc=
@strong=
@t=
@url=
@var=
[ReservedWords]
@appendix=
@appendixsec=
@appendixsection=
@appendixsubsec=
@appendixsubsubsec=
@author=
@bye=
@center=
@centerchap=
@chapheading=
@chapter=
@contents=
@detailmenu=
@exampleindent=
@heading=
@headings=
@lowersections=
@majorheading=
@paragraphindent=
@printindex=
@raisesections=
@section=
@setchapternewpage=
@setcontentsaftertitlepage=
@setfilename=
@setshortcontentsaftertitlepage=
@settitle=
@shortcontents=
@shorttitlepage=
@subheading=
@subsection=
@subsubheading=
@subsubsection=
@subtitle=
@summarycontents=
@title=
@titlefont=
@titlepage=
@unnumbered=
@unnumberedsec=
@unnumberedsubsec=
@unnumberedsubsubsec=
@vskip=
\\input=

[KeyWords2]
@anchor=
@asis=
@cartouche=
@cindex=
@columnfractions=
@display=
@enumerate=
@example=
@exdent=
@findex=
@flushleft=
@flushright=
@format=
@ftable=
@inforef=
@item=
@itemize=
@itemx=
@kindex=
@lisp=
@menu=
@multitable=
@node=
@noindent=
@pindex=
@pxref=
@quotation=
@ref=
@smallbook=
@smalldisplay=
@smallexample=
@smallformat=
@smalllisp=
@syncodeindex=
@synindex=
@tab=
@table=
@tindex=
@top=
@uref=
@vindex=
@vtable=
@xref=

[KeyWords3]


Open points (I didn't defined a PSPad highlighter for years so these may be
simple to achieve):

* comments:
  * single line: starting with @c  or @comment  (both
with a trailing space/tab) or be completely @c
  * block: staring with @ignore and ending with @end
ignore (both markers must start a new line)
  * everything after @bye is a comment [doesn't work in VIM, too]

* preparser: The help file talks about preparser word, which keywords belong to
the preparser, how should the keyword groups be used

* code explorer: how to add this for a user highlighter?

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

Odpovedet emailem