Are there any guidelines to write a format of a file in a document in LaTeX?

Some times I have to cite in my writings some file format using the "dot notation" e.g. .tiff or .dll.

So far I am using these formats:

\verb|.dll|
\textit{.dll}


Any guidelines or recommendation from the typography and publishing industry I am not aware of?

• Well... CMS – Matsmath Aug 22 '16 at 17:49
• You can use the \path command from url.sty, which offers the advantages that it is some kind of a standard, that it can do some reasonable line-breaking if you need that, and that you could change the definition later if a publisher wants something different. – Jim Hefferon Aug 22 '16 at 20:10

In general I think that a typewriter font is used for "computer code" but particular publishers (or thesis style checkers) may differ. I would use either \verb|.tag| or preferably \texttt{.tag}. Others may well disagree.
• If a file is named Letter.txt for example, then the filename extension is txt.
• Therefore, I would classify the file as a TXT-file or txt-file using \texttt{}.