texttt

How to represent class names in LaTeX?

Hi, what do you see as best way of presenting class names in LaTeX documents (writing about a piece of software). I'm currently using \texttt (monospaced typewrite font) which otherwise works fine but my class names end up goind "over" the margins. So, I'm asking for either an alternative (good-looking) way of representing the class...

Preventing \texttt LaTeX tag from letting its content passing over the margin

Hi there! In my report, I'm writing some class names or variable names inside of a paragraph, and I want these names to be rendered in a monospace font. Example: This is my class name: \texttt{baseAdminConfiguration}. Sometimes when the single word inside of the \texttt tag is rendered at the end of a line, the word does not go to t...