C++ brackets highlighting

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

C++ brackets highlighting

Postby sy8111 » Wed Jan 03, 2007 11:40 am

Hi, all:

I want to use different color from normal text for all brackets in C++, including {} [] (). How to achieve it?

Thanks
User avatar
sy8111
Newbie
 
Posts: 2
Joined: Wed Jan 03, 2007 12:00 am

Re: C++ brackets highlighting

Postby Mofi » Wed Jan 03, 2007 2:14 pm

Open Advanced - Configuration - Editor Display - Syntax Highlighting and click on the button Open left the wordfile specification to open the wordfile you currently use and close the configuration dialog with Cancel.

If you use the standard wordfile.txt in the UltraEdit/UEStudio program directory the first language definition /L1 is for "C/C++". Scroll down until you find a blank line following a line which starts with /L2"Visual Basic".

At the blank line insert following block:

/C5"Brackets"
(
)
[
]
{
}


If you use the standard wordfile, best save the file now with a new name to avoid problems in future with updates. While running the setup, you will be always asked to backup existing wordfile.txt as wordfile.old before existing wordfile.txt is replaced by the new one OR the new wordfile.txt is installed as wordfile.new and existing wordfile.txt is not changed. If you use a wordfile with a different name (or location), you will never have problems during an update because your personal wordfile is never modified independent which update method you select for the standard wordfile during installation.

Next open again the syntax highlighting configuration dialog and specify the new wordfile if you have saved it with a different name or location. Then select Language "C/C++" and Color Group "Brackets" and set the color you want for the bracket characters.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4055
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: C++ brackets highlighting

Postby sy8111 » Wed Jan 03, 2007 2:24 pm

Thank you so much. It works
User avatar
sy8111
Newbie
 
Posts: 2
Joined: Wed Jan 03, 2007 12:00 am


Return to Syntax Highlighting