format examples

✍️ google-blog-style

Source: https://developers.google.com/style/format-examples\n\n# Format examples

Stay organized with collections

Save and categorize content based on your preferences.\n\n- Home\n- Products\n- Style\n\n\n## Page Summary\n\n- When introducing an example at the end of a sentence, use a comma or an em dash before the example.\n- When introducing a short example in the middle of a sentence, use parentheses to enclose the example.\n- For longer examples in the middle of a sentence, it's recommended to rewrite the sentence for better clarity, potentially placing the example at the end.\n- Avoid using phrases like "for example" or semicolons before introducing examples within sentences.\n\nWhen introducing an example at the end of a sentence, use a comma or an em dash before the example.\n\nWhen introducing a short example in the middle of a sentence, use parentheses to enclose the example.\n\nFor longer examples in the middle of a sentence, it's recommended to rewrite the sentence for better clarity, potentially placing the example at the end.\n\nAvoid using phrases like "for example" or semicolons before introducing examples within sentences.\n\nTo introduce an example in a sentence, use the guidance in the following table. You can introduce

examples using such as, for example, or like in various ways.\n\n\nGuidance | Recommended | Not recommended\nIntroduce a short-to-medium-length example at the end of a sentence. For clarity,

consider setting off the example using a comma, parentheses, or an em dash as appropriate. Avoid

using a semicolon for this purpose. | Choose a strong encryption algorithm, such as AES-256.

You can monitor various metrics for your managed database instances—for example,

CPU utilization, storage capacity, and active connections.

The API supports common image formats like PNG and JPEG. | Enter a name for the instance, for example, my-instance-99.

Specify the region for deployment; for example, us-central1.

Enter a name for the instance (for example, my-instance-99).\nIntroduce a short example in the middle of a sentence. Keep the example in the middle

of a sentence relatively short and consider setting it off with dashes, commas, or parentheses

as appropriate. | Enter a six-digit hex number (for example, 228B22), and then click OK.

The virtual machine (VM) requires an operating system, such as Ubuntu 22.04, to be installed.

Some elements, like buttons and input fields, have default accessibility attributes. | Enter a six-digit hex number (for example, if you want the color forest green, enter

228B22), and then click OK.\nIntroduce a longer example as a separate sentence. For a longer example, introduce it

as a separate sentence using for example as an adverb in that sentence. | You can assign tags to your virtual machine instances to categorize them. For example, you

could tag instances by environment with env:prod or env:dev. | \n\nChoose a strong encryption algorithm, such as AES-256.\n\nYou can monitor various metrics for your managed database instances—for example,

CPU utilization, storage capacity, and active connections.\n\nThe API supports common image formats like PNG and JPEG.\n\nEnter a name for the instance, for example, my-instance-99.\n\nSpecify the region for deployment; for example, us-central1.\n\nEnter a name for the instance (for example, my-instance-99).\n\nEnter a six-digit hex number (for example, 228B22), and then click OK.\n\nThe virtual machine (VM) requires an operating system, such as Ubuntu 22.04, to be installed.\n\nSome elements, like buttons and input fields, have default accessibility attributes.\n