Hi Sonia,
Yes, you can group non-contiguous sites together in the data blocks, and the approach you suggest (all the exons of one gene grouped) is a sensible one.
Here's an example of how to do it (where positions 101-205 might be an intron):
gene1_pos1 = 1-100/3 205-400/3;
Hope that helps,
Rob