Do you have to use the verbatim environment? If not, you could try the listings or fancyvrb package. IIRC, both will let you escape parts of the code so you can do things like changing the font and text direction.