// pairs: (HTML text, false=left/true=right)
sS htmlForJLabel_chatConvo_table(LPair dialog, int width) {
ret tag table(lines(mapPairsToList(dialog, (contents, right) -> {
S color = right ? "#9999FF" : "#99FF99";
int fontSize = right ? 13 : 15;
ret tr(td(tag table(tr(td(contents, style := "font-size: \*fontSize*/px; background: \*color*/; padding: 5px"))),
align := right ? "right" : null, style := "margin-" + (right ? "left" : "right") + ": 20px"));
})), +width);
}