# how to disable Babel for some text

I want to write this :

(username:password)


this :

\documentclass{article}
\usepackage[frenchb]{babel}

\begin{document}
\end{document}


give me :

(username :password) % there a space added by babel before ':'


\documentclass{article}
\usepackage[english,frenchb]{babel}

\begin{document}
{\shorthandoff{:}%

\end{document}

• Sur it work in my case. But if I want to write something that doesn't respect English nor French rules? – Hunsu May 23 '14 at 9:05
• My example contains two possible solutions. Choose the one you like better or is better adapted to your case. If you don't want hyphenation at all you can also disable it completly. – Ulrike Fischer May 23 '14 at 9:09
• Sorry I haven't understood your solution the first time! – Hunsu May 23 '14 at 9:21
• @UlrikeFischer Sometimes, a little text to explain the answer is useful :-) – ppr May 25 '14 at 12:22

If you want LaTeX to print text without formatting, you should use the verbatim environment. This environment will print exactly what you wrote, without any modifications.

MWE:

\documentclass{article}
\usepackage[frenchb]{babel}

\begin{document}
\begin{verbatim}