> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/documentation/ja-gitbook-documentation/kontentsuwosuru/blocks.md).

# ブロック

コンテンツ内でブロックを追加・編集します

GitBook はブロックベースのエディターです。つまり、標準的なテキストや画像からインタラクティブなブロックまで、さまざまな種類のブロックをコンテンツに追加できます。ページには好きな組み合わせでブロックを含めることができ、1ページあたりのブロック数に制限はありません。

<figure><img src="https://4217681718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fgit-blob-fa5f4b7d74adbe51b5373de7c2b788110614f728%2F25_12_10_creating_content_blocks%402x.png?alt=media" alt="A GitBook screenshot showing the available content blocks"><figcaption><p>GitBook の組み込みコンテンツブロック。</p></figcaption></figure>

### 新しいコンテンツブロックの挿入

マウスを使って、既存のブロックの下に新しいコンテンツブロックを挿入できます:

1. 新しいコンテンツブロックを入れたい場所の上にあるブロックにカーソルを合わせます。
2. クリックして `+` 左側に表示されるアイコンをクリックすると、挿入パレットが開きます。
3. ドロップダウンメニューから挿入したいブロックを選択します。

または、新しい行で `/` を押すと挿入パレットが開き、利用可能なブロックがすべて表示されます。リストをスクロールして目的のブロックを探すか、キーボードで検索し、リスト内を上下に移動して、 `Enter`.

### ブロックを終了する

一部のコンテンツブロックでは、ブロック内でコンテンツを追加できるよう、編集カーソルがそのブロック内にとどまります。たとえば、 [ヒントブロック](https://gitbook.com/docs/documentation/ja-gitbook-documentation/kontentsuwosuru/blocks/hint.md)内で入力しているときに `Enter` を押すと、下に新しい段落が追加されるのではなく、ヒントブロック内に改行が追加されます。

入力が終わったら、コンテンツの左側にある `+` ボタンを使って新しいブロックを挿入するか、 **⌘ + Enter** （Mac）または **Ctrl + Enter** （PC）を押して、ページに新しいコンテンツを追加できます。

### ブロックの選択と、選択したブロックの操作

ブロック内にカーソルがある状態で `Esc` キーを押すと、ブロックを1つ選択できます。また、ブロック内のコンテンツを選択して `Esc`.

選択すると、次のことができます:

* キーを押したままブロックをクリックすると、複数のブロックを選択できます。 **Shift ⇧** キー
* ブロックを上下に移動して上または下のブロックを選択します。 **↑** と **↓** キー
* ブロック全体をコピーするには、 **⌘ + C** （Mac）または **Ctrl + C** （Windows）を使います
* ブロック全体を切り取るには、 **⌘ + X** （Mac）または **Ctrl + X** （Windows）を使います
* 選択したブロックを削除するには、 **⌫** または **Del**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://gitbook.com/docs/documentation/ja-gitbook-documentation/kontentsuwosuru/blocks.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
