Jump to content

User:Omegatron/Dash syntax

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Omegatron (talk | contribs) at 17:45, 3 March 2006 (Examples: «+"* <code>Dr. Foo's theorem derives a result of -3 from the equation 2 + 5 - 10, barring arithmetic mistakes</code> ** Dr. Foo's theorem derives a result of −3 from the equation 2 + 5 − 10, barring arithmetic mistakes"»). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Syntax

Hyphen -
  • text-text
En dash
  • 1234-1234
  • text_-_text
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.
  • Dr. Foo's theorem derives a result of -3 from the equation 2 + 5 - 10, barring arithmetic mistakes
    • Dr. Foo's theorem derives a result of −3 from the equation 2 + 5 − 10, barring arithmetic mistakes