.
Open your text editor, such as TextEdit, or word processor, such as Pages or Microsoft Word.
2.
Open a document and click your cursor in front of whitespace where you can enter a character.
3.
Press the key combination "Shift-\" to type the "|" symbol.