User:Omegatron/Dash syntax
Appearance
Syntax
- Hyphen
- text-text
- En dash
- 1234-1234
- Em dash
- text--text
- text‸--‸text
- text‸---‸text
- Minus sign
- -1234
- 1234‸-‸1234
Examples
Compound words are sometimes combined into one, but sometimes remain hyphenated: foo-bar.
- Compound words are sometimes combined into one, but sometimes hyphenated: foo-bar.
From 1923-1945, Mr. Foo frequently patronized bars.
- From 1923–1945, Mr. Foo frequently patronized bars.
Foos are timid creatures -- one was found hiding underneath a bar for several years -- and should not be approached carelessly.
- Foos are timid creatures — one was found hiding underneath a bar for several years — and should not be approached carelessly.