You can make a table from the top menu
Table > Insert table into the text frame with settings:
Body rows: 1
Header rows: 0
Footer rows: 0
After that just paste you text inside that table and you can style the table all you want.
and table options can be found from the top menu
Table > Table options or
Table > Cell options
It's not perfect, but it should do it. I don't know if CS4 or CS5 have better solutions for this.
The not perfect part is that if you make the mistake of resizing the table manually, the minimum height changes into the manually set height. ( Not a big problem though. )
In that case you might want to either use Character styles (or Paragraph styles)
Both can be found from the top menu:
Window > Styles >
- Make a new Character style, select some text and go to that
character styles settings by double clicking it.
- Then in the settings either use Underline or strike trough.
- Give similar to the following settings: The idea is to make a line
that covers the area of the text and then offset it to the right
position. ( Underline and Strike through are both set behind the
text so this makes a background for the text. )
This also isn't perfect because if you change for example the font-size.. you will have to get back to the Underline settings to re-set the underline.