For the text box you can edit the Text Events to add the mode. See
http://t0x.in/xchattextevents.html for details.
Windows:
For the user list you will need either the latest version built from SVN code or the latest official build. Then you must use
/set -on gui_tweaks 64
*nix:
For the user list you will need either the latest version built from SVN code or this script
http://lwsitu.com/xchat/color_by_mode.plFor the SVN build you must run
/set -on gui_tweaks 64
as well.
For the script there is no configuration required but you might want to change
$m->set( $i, 4, Gtk2::Gdk::Color->new( @$color ) );
to
#$m->set( $i, 4, Gtk2::Gdk::Color->new( @$color ) );
if you don't want the nicks in the userlist to be colored. Of course you can change the colors for the modes as well.
The script should work with the SilvereX build as well on Windows. I had it loaded and it was doing what it was supposed to but it gets its data in a very unsafe matter(on Windows) so it might not be very stable. However as long as it doesn't crash upload loadng it should be fine.