> 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%2FspecLXwmhIxrNj5QDyol%2Fcreating-content-blocks%402x%20(1).png?alt=media&amp;token=a1a7dbe0-f83d-4551-8f38-5665d02221bd" alt="A GitBook screenshot showing the available content blocks"><figcaption><p>GitBookに組み込まれているコンテンツブロック。</p></figcaption></figure>

### 新しいコンテンツブロックを挿入する

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

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

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

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

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

作業が終わったら、次のいずれかの方法でページに新しいコンテンツを追加し続けることができます。つまり、次のものを使って新しいブロックを挿入するか、 `+` コンテンツの左側にあるボタンを使うか、次を押します **⌘ + Enter** を Mac で、または **Ctrl + Enter** を PC で押すことで開けます。

### ブロックを選択して選択済みブロックを操作する

カーソルをブロック内に置いた状態で、次を押すと1つのブロックを選択できます `Esc` キー。ブロック内のコンテンツをハイライトして次を押すことで、複数のブロックを選択することもできます `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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
