# is.logue.block.code

> Published by [lefelys.com](https://lexicon.garden/identity/did:plc:cdqpaz46zwmw4ntplh5txoms)

## Description

Preformatted code block with optional syntax highlighting.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:cdqpaz46zwmw4ntplh5txoms/is.logue.block.code)
- [Documentation](https://lexicon.garden/lexicon/did:plc:cdqpaz46zwmw4ntplh5txoms/is.logue.block.code/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:cdqpaz46zwmw4ntplh5txoms/is.logue.block.code/examples)

## Definitions

### `is.logue.block.code`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `language` | `string` | No | Programming language used for syntax highlighting, loosely based on PrismJS language definitions |
| `plaintext` | `string` | Yes | The code content |

## Raw Schema

```json
{
  "id": "is.logue.block.code",
  "defs": {
    "main": {
      "type": "object",
      "required": [
        "plaintext"
      ],
      "properties": {
        "language": {
          "type": "string",
          "maxLength": 50,
          "description": "Programming language used for syntax highlighting, loosely based on PrismJS language definitions"
        },
        "plaintext": {
          "type": "string",
          "description": "The code content"
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "description": "Preformatted code block with optional syntax highlighting."
}
```
