In HTML using CSS, <span style="text-decoration: overline">text</span>
In HTML documents, the characters can be produced with ¯ (decimal ¯) and ̅ (̅).
In TeX, a single symbol can be overlined with \bar x or \bar{x}. Longer sections can be overlined with \overline{ABC}, where a space is written as "\ " and an umlaut is written as "\ddot a".
In Microsoft Windows, the symbol can be added with any program with the keystrokes Alt+0175.
In Linux, the symbol can be added using the keystrokes Ctrl+Shift+U to activate unicode input, then type "00AF" as the unicode for the character.