% arara: pdflatex
\documentclass{article}

\usepackage{glossaries}

\setacronymstyle{long-short}
\newacronym{html}{HTML}{hypertext markup language}
\newacronym{xml}{XML}{extensible markup language}

\begin{document}
{local: \gls[local]{html}, \gls{xml}.
}

global: \gls{html}, \gls{xml}.


\end{document}
