Syntax Definition

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
mikem
Posts: 2
Joined: Mon Aug 11, 2003 8:26 pm

Syntax Definition

Post 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:
User avatar
webmasta
Posts: 168
Joined: Mon Jul 28, 2003 8:16 pm
Location: Toronto

Post 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?
mikem
Posts: 2
Joined: Mon Aug 11, 2003 8:26 pm

Post 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
Post Reply