Page 1 of 1
Words to be highlighted are not showing up in SYN file
Posted: Fri Jun 13, 2003 2:25 pm
by no.cache
They are:
@@
DCONTACTED
I have created a class of document labeled ~.OCR which is a plain old text file, not a programming file of any kind. I posted this in greater length yesterday but didn't get any response.

I'm kind of desperate here:
I thought I could just edit the sample text.syn file, rename, and save it to the specific directory assigned to my ~.OCR files having simply appended my two keywords to the end of it. But they don't show, even having carefully double checked my directory assignments.
How have you gotten your syn files to work?
And more importantly — how did you label them (eg inside the body of the file, namely:
TEXT=1
[Syntax]
Namespace1 = 6
etc., down to the Keywords section
???
Mine isn't working. Help!
Skye
Posted: Wed Jun 18, 2003 4:30 pm
by no.cache
The syntax highlighting is
just amazing! and I wanted to again thank everyone who helped me with this.
You cannot possibly comprehend how helpful this is to me! Woo Hoo!
Skye Girl

Posted: Tue Jul 15, 2003 7:35 pm
by Bmacguy
I have (had) the same problem as you. Non-programmer type.
Just installed textpad yesterday. Email from support no real help
except it pointed me to this forum. The help file confused me.
I found another thread that you started and with some info from
that I modified the file [resource.syn]
Very simple things i need: to color the @ character and maybe some more.
I edited the file, deleting most of it. Now my @ and * and [ ] and ( ) are colored.
Here tis:
---------------------------------------
C=1
[Syntax]
Namespace1 = 6
IgnoreCase = No
KeyWordLength =
BracketChars = {[()]} <<--- this was there by default
OperatorChars =
PreprocStart =
SyntaxStart =
SyntaxEnd =
HexPrefix =
CommentStart =
CommentEnd =
CommentStartAlt =
CommentEndAlt =
SingleComment = @ <<---- don't know if I need this
SingleCommentCol =
SingleCommentAlt =
SingleCommentColAlt =
SingleCommentEsc =
StringsSpanLines = No
StringStart = " <<---- don't know if I need this or the other " entries
StringEnd = "
StringAlt =
StringEsc = "
CharStart =
CharEnd =
CharEsc =
; Resource types
[Keywords 1]
@
; Primary attributes
[Keywords 2]
*
-------------------------------------------------
I deleted everything else. I'm sure I will make some other changes.
Hope this helps.
Posted: Tue Jul 15, 2003 9:42 pm
by no.cache
Hiya,
I wrote to Helios about this because I think it's pathetic that there isn't a single generic TEXT-BASED sample syn file . . . for the 99.9% of us who are not programmers.
Since I doubt they'll add a sample file, let me give you mine. Sheesh, you'd think they would have done this years ago! It's
such a cool feature.
Mine happen to highlight # and @ and some other stuff, as you can see. Save it as a ~.syn file. Make sure you're pointing to the right directory for the ~.syn file when you set up your document class properties.
Skye-a-Watha
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C=1
[Syntax]
Namespace1 = 6
IgnoreCase = Yes
KeyWordLength =
BracketChars ='
OperatorChars =#@
PreprocStart =
SyntaxStart =
SyntaxEnd =
CommentStart =
CommentEnd =
CommentStartAlt =
CommentEndAlt =
SingleComment =
SingleCommentCol =
SingleCommentAlt =
SingleCommentColAlt =
StringStart =
StringEnd =
StringAlt =
StringEsc =
CharStart =
CharEnd =
CharEsc =
[Keywords 1]
xxxx
[Keywords 2]
(888)
[Keywords 3]
(202)
[Keywords 4]
Suite
Ste.
Box
[Keywords 5]
MC
MAC
[Keywords 6]
PARTNER
JOINT
CO-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
