I'm writing up some computer notes for my students, and I have examples of variables and other commands which involve characters like % and underscore.  These are typeset with

\type{%t^y_8*&}

for example.  What I would like to do is to color these as well.  However

\color[blue]{\type{%t^y_8*&}}

doesn't seem to work; nor does

{\blue \type{%t^y_8*&}}

So - how do I obtain colored text within \type?

Thanks,
Alasdair

--
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew