Quotation Marks

  • Quoted words, phrases, and sentences that run into the text are enclosed in double quotation marks. Single quotation marks enclose quotations within quotations.
  • Use quotation marks in documentation when enclosing a single word in the text. For example: The words “and/or” should be avoided.
  • Use single quotation marks in documentation when enclosing a single letter in the text. For example: Add an 's' to form the plural of most words.
  • Use straight quotes in code samples. For example: mail.setReplyTo('support@acme.com') Use curved quotes for all other quotation marks.
  • If a passage of more than one paragraph from the same source is quoted and is not to be set as an excerpt, use quotation marks at the beginning of each paragraph and at the end of the last paragraph. That is, don't use quotation marks at the end of any paragraph in the quotation except the last one.
  • Material set off from the text as a block quotation shouldn't be enclosed in quotation marks.
  • In UI text and documentation, enclose user and object permission names in quotation marks.
  • Don't enclose field, picklist, code, or drop-down list values in quotation marks.
  • Use these general guidelines around punctuation and quotation marks:
    • Place commas and periods inside the quotation marks. When the quoted material is at the end of the sentence or in a series and including the period or comma in quotation marks would confuse the user, reword the sentence. If this isn't possible, place the period or comma outside the quotation marks.
      Reword this
      The “salesforce.com” category name is case-sensitive; you can't use “Salesforce.com”.
      To this
      The “salesforce.com” category name is case-sensitive; you can't use “Salesforce.com” as the category name.
    • Place semicolons and colons outside quotation marks and parentheses.
    • Place question marks or exclamation marks inside quotation marks, parentheses, or brackets only when they're part of the quoted or parenthetical matter.
    • Include a comma after the introduction to a quotation. For example: Miriam said calmly, “I have no idea what you mean.”