# ai-builder/2.7.9/assets/JSON-Blocks/code.js

AI Builder – Generate pages, blocks, images &amp; translate with AI, version 2.7.9. 50 lines.

- Page: https://pluginprobe.com/plugins/ai-builder/2.7.9/code/assets/JSON-Blocks/code.js
- Raw: https://pluginprobe.com/plugins/ai-builder/2.7.9/raw/assets/JSON-Blocks/code.js
- Modified: 2025-08-23T08:19:58+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/ai-builder/2.7.9/code/assets/JSON-Blocks/code.js#L10-L20`.

```javascript
const codeBlocks = [
  {
    id: "code-01",
    jsonBlocks: {
      blockName: "core/group",
      attrs: {
        align: "center",
        className: "code-container",
        style: {
          color: {
            background: "#ffffff",
          },
        },
      },
      innerBlocks: [
        {
          blockName: "core/heading",
          attrs: {
            content: "Code Example",
            level: 2,
            className: "code-title",
            textAlign: "center",
          },
        },
        {
          blockName: "core/paragraph",
          attrs: {
            content: "Here's a sample of our code implementation",
            className: "code-description ai-text-block",
            align: "center",
          },
        },
        {
          blockName: "core/code",
          attrs: {
            className: "code-block",
            content: `function example() {
  const greeting = "Hello World";
  console.log(greeting);
  return greeting;
}`,
          },
        },
      ],
    },
  },
];

export default codeBlocks;

```
