Sorry for not replying, I almost gave up checking whether there are any new
replies.

Why is it necessary know the name of the syntax? It is custom user syntax, for
writing tickets for a specialized bugtracker. I called the file "KPM
Tickets.ini". But I wish not that PSPad is offering a Syntax hightlight for
KPM-Tickets like it's offering C/C++ or Java. Stuff around this is confidential
and it shall only support this if it's got the file linked to one of the
user-defined syntax highlight slots.

The comment is meant to start at the end of a line. It's primary purpose is to
point our things which are right or wrong. I'll make up an example of a bug for
a game in development, so you can see what kind of documents shall be
highlighted with KPM Tickets.ini

Action:
You hero talks to the level boss.

Result:
Dialogue window opens. 
You hero dies. <<< This is the bug

Expected Result:
Dialogue window opens.
You hero is still alive.  

So you see that the comments are meant to be used at the end of a line.
Actually, another thing that surprises me is that I cannot define multi-word
keywords. I'd like to have Action, Result, and "Expected Result" as keywords.
Can't I just add space " " to "KeyWordChars="? This way, if I want to have
"Expected Result" highlighted, I have to make "Expected" a keyword itself, but I
actually want to have "Expected Result" highlighted and "expected" or "Expected"
in all other contexts shall be plain.

Also, for some reason words preceding ":" are highlighted in a different color
than normal keywords. I did not define ":" as something special, so why does it
do that? Is it because program languages start their loops with ":"? I need to
highlight plain text, not a program code. Including ":" as a regular character
of keywords ("KeyWordChars=:") does not do the trick.   

Here is what I use now as syntax highlight file (I have many more keywords
there, just keeping it small as a minimal working example):

;PSPad user HighLighter definition file
[Settings]
Name=KPM Tickets
HTMLGroup=0
Label=1
FileType=*.txt,*.kpm
CommentString=<<<
IndentChar=
UnIndentChar=
TabWidth=4
CaseSensitive=1
SingleQuote=1
DoubleQuote=1
EscString=1
KeyWordChars=_
CodeExplorer=ftUnknown
[KeyWords]
Action=
Expected Result=
Expected=
Result=
[ReservedWords]
[KeyWords2]
[KeyWords3]

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

Odpovedet emailem