Page 1 of 1

Syntax Definition

Posted: Mon Aug 11, 2003 8:34 pm
by mikem
I would like to add color to plan text in my Syntax Definition, not the comments and not the numbers just the text which is used that sits on a single line. This is for a comand line FEA program which has title text that is alway different. But I would like to color it. Any Ideas. :roll:

Posted: Mon Aug 11, 2003 11:52 pm
by webmasta
Can that text be enclosed in 'single quotes' without affecting the program ?
And if so, is single quotes used anywhere else in the program??

If your answer is "yes" "no" then a straightforward solution is possible.

Something i dont understand about that syntax preferences.. no matter what syn file i choose, i get the same items to choose from .. now what would constitute a comment in a text file? or an operator? or a keyword? and i have a choice of 6 keywords.. we all know that a comment in perl starts with #... but in a text file, what does it start with??

Can someone shed some light?

Posted: Tue Aug 12, 2003 1:57 pm
by mikem
I pulled apart some of the text file, most of the file has comments which are commented out with =, the other part of the file is filled with numbers (see below). but there are places for titles which fit into the program. This is where I want to add color to. I guess I want to add color to any thing that is not a number or commented out.

=LOADING
17,19,,1.973,
20,,,2.568,
21,23,,3.163,
24,,,2.568,
25,32,,1.973,
IMPOSED SLOPE MOVEMENT <= add color to this line
275,,,,,,,85,85,-498.687
0.1,0.005,0.1,,,,-1.00E-04