Strings that do not start with double quote

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

Strings that do not start with double quote

Postby palou » Tue Dec 21, 2004 3:28 am

Hi all,

I'm writting VHDL and have strings that not start with quotes
i.e: X"CAFE_BEBE" for hexadecimal string
or B"0010_0011" for binary string

Is there a way to correctly higlight those strings?

Thank's
User avatar
palou
Basic User
Basic User
 
Posts: 46
Joined: Fri Dec 17, 2004 12:00 am
Location: Geneva / Switzerland

Re: Strings that do not start with double quote

Postby Mofi » Tue Dec 21, 2004 5:55 am

Try this:

1) Replace String Chars = definition by Noquote (case-sensitive!!!).

2) Delete the string characters from the /Delimiters = list.

3) Define a special color group for your strings with the substring expression. See UltraEdit help about Syntax Highlighting for details. Example:

/C8"Strings"
** " B" X"


4) Assign your default string color to this color group.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4055
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Strings that do not start with double quote

Postby palou » Tue Dec 21, 2004 6:35 am

Thank's Mofi.

I did as you explain except for the "Noquote" (because I want to highlight standard strings too) and it seems to work just as I want.

Alain.
User avatar
palou
Basic User
Basic User
 
Posts: 46
Joined: Fri Dec 17, 2004 12:00 am
Location: Geneva / Switzerland


Return to Syntax Highlighting