Home > Plug-ins, Visualization > Visualization – Element Highlighting

Visualization – Element Highlighting

December 13th, 2010

Element Highlighting visualization feature paints identifiers inside source code in a different color according to your preference. It can paint the following elements:

  • classes
  • structures
  • interfaces
  • enumerations
  • methods
  • properties
  • fields
  • events
  • anonymous elements

Compare these two views of a source code with the disabled feature on the left side, and enabled feature on the right (click on the picture to see it in a full size):

CodeRush Element Highlighting preview

By default, the Element Highlighting feature is disabled. You can enable it on the DXCore Visualize toolbar:

CodeRush Element Highlighting toolbar item

You can also enable the feature within the “Editor | Painting | Element Highlighting” options page in the Options Dialog:

CodeRush Element Highlighting options page

Here, you can also specify the following settings:

  • Turn on or off each painted element
  • Make the font bold
  • Color of a text
  • Color of a text background
  • Color of a border
  • The style of a border: None, Frame, Round frame, Solid underline or Wavy underline
The plug-in does not ship with Code Rush. You are welcome to download it as a binary or its source. Note, however, there are a few issues with this feature:
  • it does not paint well in VS2005 and VS2008, only VS2010
  • it slow downs the performance on large source files.
Products: N/A
Versions: 10.2 and up
VS IDEs: any
Updated: Mar/18/2011
ID: C041

Similar Posts:

  1. Fons
    December 13th, 2010 at 11:54 | #1


    I don’t seem to have this option. And according to the online help http://documentation.devexpress.com/#CodeRush/CustomDocument8515 such option does not exists. I only use C# so maybe this is a Basic thing. Still, why does the online help does not mention such option.


  2. December 13th, 2010 at 12:22 | #2

    Hi Fons,

    It appears that we did not include this feature into the release. Let me get clarification on this. Give me some time.

  3. Brian
    December 13th, 2010 at 13:16 | #3

    I’ve been writing my own adornments to get this functionality. This would be much better, but I don’t see the option either.


  4. December 14th, 2010 at 12:04 | #4

    OK, the post has been updated – see the details on the bottom of this topic.

  5. Alex
    December 15th, 2010 at 03:49 | #5

    Looks good! I’ll give it a try.

    BTW the link to the bin.zip file is broken as the file has an underscore in it

  6. December 15th, 2010 at 04:05 | #6

    Thanks, the link is fixed.

  7. Seamus
    December 17th, 2010 at 15:32 | #7

    Ok, spill the beans. What font and colors did you use, preferably in RGB values please. 😉

  8. December 20th, 2010 at 06:31 | #8

    The font is Consolas, 12pt. My settings file for Element Highlighting is attached.