Text formats and notational conventions
Standard text format and notational conventions in developer documents help to understand and emphasize essential information.
Text and brackets
| Format | Usage |
|---|---|
| Bold | Use bold text for:
|
| Italics | Use italics formatting for variable text, such as folder names or ID values that vary for each user. |
| Monospace | Use Courier monospaced, gray-highlighted text for short code samples, file paths, system messages, and user inputs.Example: Open a web browser and navigate to http://localhost:8080. |
| Angle brackets < > | Use for identifiers, parameters, or argument values provided by users. Example: git config [<file-option>] [--type=<type>] --add name value |
| Curly brackets { } | Use for text that varies based on the user and needs to be replaced with values unique to the user or environment. For example, each Clover merchant has a unique identifier. In the documents, this is indicated with a placeholder: GET request with placeholder: |
| Square brackets [ ] | Use to indicate a parameter that is optional. Example: In function(param1 [, param2])param1 is required and param2 is optional. |
| Links | Use text in Clover green font (#228800) for links to other sections of the docs or to external resources like our GitHub software development kit (SDK) repositories. |
Code blocks
Use for long code samples in separate blocks for easier reading. You can click Copy to use the content of each block in your code.
{
"elements": [
{ "item": {"id": "ABWN2X43EXJN8"}},
{ "item": {"id": "ABWN2X43EXJN8"}},
{ "item": {"id": "F1RBG5MKD3SQR"}},
{ "item": {"id": "F1RBG5MKD3SQR"}},
{ "item": {"id": "S9230FJR93DFJ"}},
{ "item": {"id": "S9230FJR93DFJ"}}
]
}Information blocks
Use to provide additional information or caution about certain actions.
NOTENotes are informational and provide you with extra details for the section you are reading.
IMPORTANTImportant blocks contain information you need to read to ensure your code works properly.
WARNINGWarnings caution you against actions that may cause data loss or damage to a Clover device.
Updated 15 days ago
