Page 1 of 1

can I highlight C variables

Posted: Fri Apr 24, 2015 2:23 pm
by wefergus
I want to highlight a list of verilog array names in code, the issue is that the arrays in the C code occur with and without indices, e.g., x, x[7:0],
x[7:0][3]. The convenient syntax highlighting works fine for occurrences of x, but the occurrences of x with trailing index selectors are not highlighted. I tried adding []:0123456789 to the "Other characters in words" but that did not work. Any suggestions?

Posted: Tue May 05, 2015 1:06 am
by wefergus
Notepad++ makes this relatively easy to do, and while you're editing the file(s). A control-F (find) also gives you the option of finding all occurrences of the selected variable in either the current file or across all opened files. I'm told Eclipse also has this feature.