Page 1 of 1

Syntax colors parts of words

Posted: Wed Sep 10, 2003 2:32 am
by Lee
I am using syntax highlighting with COBOL. It works very nicely except that it considers dashes ("-") to be delimiters and to separate terms. As a result, I'll get reserved words highlighted in the middle of variable names, ie: in this variable name, "POINTER" would be one color while the rest would be another: WORK-STRING-POINTER

How can I change the syntax file to keep this from happening?

Posted: Wed Sep 10, 2003 3:07 am
by webmasta
Try ..

Configure /preferences / etc etc ..
Drill down and choose your syntax file...
Theres a textfield on the dialog "Other characters in words" ... type a dash just next to whatever is there.

<Keith>Will keep both Textpad and Cobal happy</Keith> :lol:

Should work.

webM

Syntax highlighting in Cobol

Posted: Thu Sep 18, 2003 3:00 pm
by bobcongmon
This works great, thanks...except I notice that it does not work if other parts of the word are purely NUMERIC.

For example, in paragraph name 2200-EXIT, the word EXIT (and only that word) is still highlighted. If the name is 2200A-EXIT, the complete name is not highlighted (which is what we want).