Can I tell LaTeX that it may hyphen words that contain an underscore _ always before the underscore?
I have a lot of code examples in text, like is_error_condition_enum and I would like to tell LaTeX it may hyphen this as:
Lorem ipsum is_error_-
condition_enum lorem.
always.
If that is not possible globally, how do I make an entry for some underscore-words like:
\hyphenation{is_-error_-condition_-enum}
because that entry is rejected, obviously.
In sourcecode I write words like these as \gpmono{is\gpus{}error\gpus{}condition\gpus{}enum}.

\hypenation{}(TeX!-)command? Because for me it's not working at all. Getting the same error:Improper \hyphenation will be flushed. ...– 0xC0000022L Jul 04 '19 at 09:49