Ruby code inside ERB tags (whether in plain or HTML environment) is highlighted via the ruby.jsf colorer.