highlighting lines begining with *

Syntax highlighting, code folding, brace matching, code indenting, and function list

highlighting lines begining with *

Postby mikycampo » Wed Jun 20, 2007 12:21 pm

I need to highligh lines begining with * and to have no different highlight for numbers int and double (All numbers must have the same highlighting).

Thanks again Michele :cry:
User avatar
mikycampo
Newbie
 
Posts: 2
Joined: Tue Jun 19, 2007 11:00 pm

Re: highlighting lines begining with *

Postby jorrasdk » Wed Jun 20, 2007 12:50 pm

Hmm, please tell us a little more:

- What language are you coding ?

- Is the lines beginning with * considered comment lines or something else ?

- Version of UltraEdit ?
User avatar
jorrasdk
Master
Master
 
Posts: 275
Joined: Mon Mar 19, 2007 11:00 pm
Location: Denmark

Re: highlighting lines begining with *

Postby mikycampo » Wed Jun 20, 2007 2:09 pm

Hmm, please tell us a little more:

- What language are you coding ?

Ls-dyna

- Is the lines beginning with * considered comment lines or something else ?

These are keywords lines, i'would like to not put all the cards in the file.

- Version of UltraEdit ?

9.20+
User avatar
mikycampo
Newbie
 
Posts: 2
Joined: Tue Jun 19, 2007 11:00 pm

Re: highlighting lines begining with *

Postby jorrasdk » Wed Jun 20, 2007 2:28 pm

Hey a vintage UltraEdit :-) Ok, I'm using version 13.10, so I'm not sure everything I tell you will work in 9.20+

In the UE13.10 help file for syntax highlighting it says:

UE help on Syntax Highlighting wrote:Keywords beginning with a Sub String

There are instances in some languages where it is desirable to highlight keywords that begin with a particular sub-string, however the complete word is not known. UltraEdit provides the ability to define sub-strings that are used to determine if a word should be highlighted. If such sub-strings are defined for a particular language under a color group UltraEdit will determine if a word begins with one of the sub-strings. If it does, it will be highlighted accordingly.

The sub-strings should be defined as with any other set of keywords however the line containing the sub-strings should start with "** " and all sub-strings should be on the same line as in:

** aaa bbb

The example above would highlight any words beginning with "aaa" or "bbb".

Because I don't know LS-Dyna, I'm guessing you have a wordfile something like:

/L10"LS_DYNA" Nocase Noquote Line Comment = $ File Extensions = key dyn
/Delimiters = ! @^&(){}-+=|\/{}[]:;"'<>,.?~
/C1"LS-DYNA Keywords 1"
** *


** * instructs UltraEdit to consider all strings starting with * as keywords belonging to color group C1.

Regarding your question with numbers (int and double) I think we need to see your wordfile and a LS-Dyna example.
User avatar
jorrasdk
Master
Master
 
Posts: 275
Joined: Mon Mar 19, 2007 11:00 pm
Location: Denmark


Return to Syntax Highlighting