Message Format : using HTML with BeanShell Expressions

I am trying to use HTML to report a Message which uses BeanShell Expressions and Properties. The following Message Format works great, but I want the whole line to be italicised.

{"Event: " + $newPieceName$ + " " + ((($Region_Level$-1) == 3 || ($Region_Level$-1) == 6) ? "are" : "is") + " affected by " + $BasicName$ + "."}

This is not my forte. How can I do that?

I am using VASSAL 3.6.3.

Enable HTML in the Global Options component, if it is not already done:

image

You can then use HTML in the report format.

e.g. to output italics, enclose the string with "<i>your string</i>"

Sorry I forgot to mention that Enable HTML support in Global Options was set to “Always”. Your solution works, my message now looks like this:

{"<i>Event: " + $newPieceName$ + " " + ((($Region_Level$-1) == 2 || ($Region_Level$-1) == 3) ? "are" : "is") + " affected by " + $BasicName$ + ".</i>"}

html_message

Thanks!