# Put a bracket over a text (not in math mode)

I want to place a line or a bracket over a big text (of two or more lines length) and preferably preventing the hyphenation of this text. Is it possible?

-
Perhaps you should also describe what you want to achieve, not how you want to achieve it. XY Problem –  Andrey Vihrov Feb 20 '12 at 9:37

 $\overbrace{\parbox[c]{0.5\textwidth}{some text here}}$

to remove hyphenation, put \hyphenpenalty=15000 and \pretolerance=10000 at the beginning of some text, as suggested here at StackOverflow –  tohecz Feb 20 '12 at 11:00
yes or perhaps more commonly if you don't want hyphenation, just add \raggedright which will mean that TeX will prefer to leave the line short rather than hyphenate, unless it is really desperate. –  David Carlisle Feb 20 '12 at 11:02
I believe that it would look wrong with the overbrace. Maybe \centering? But again, this depends on the purpose of the OP, which he has not mentioned. –  tohecz Feb 20 '12 at 14:04
on \raggedright yes it would look better done with \begin{tabular}{l} rather than \parbox then the box would have the natural width of the longest line, and the brace would just span that, assuming manual line breaking is acceptable.... –  David Carlisle Feb 20 '12 at 14:20