Marcelo Acuña wrote:
> No, I have about 1000 of this ---comment---, and I
> need a global setting.
I think it is not possible to redefine --- without changing the font metrics.
Instead, you will have to define your own emdash character that does not allow
a linebreak. Something like
\newcommand\myem{\textormath{\leavevmode\hbox{---}}{---}}
Then you could do
\newcommand\mycomment[1]{\myem#1\myem}
and wrap all you comments in \mycomment{this is a comment}
If you do not need, say, underline, in your document, you could furthermore
redefine underline as
\renewcommand\underbar{\mycomment}
and just underline all you comments in LyX.
Or do it with colors as described here:
http://www.troubleshooters.com/linux/lyx/index.htm#BuiltinCharacterStyles
However, if this is really such a common task in Spanish documents, posting a
question to the Spanish TeX newsgroup (es.comp.lenguajes.tex) might help
further.
HTH,
Jürgen