# About

## Multi-syntax code

You can add code to your GitBook pages using code blocks.

When you add a code block, you can choose to [set the syntax](https://gitbook.com/docs/creating-content/blocks/code-block#set-syntax), [show line numbers](https://gitbook.com/docs/creating-content/blocks/code-block#with-line-numbers), [show a caption](https://gitbook.com/docs/creating-content/blocks/code-block#with-caption), and [wrap the lines](https://gitbook.com/docs/creating-content/blocks/code-block#wrap-code). It’s also easy to [copy the contents of a code block to the clipboard](https://gitbook.com/docs/creating-content/blocks/code-block#copying-the-code), so you can use it elsewhere.

### Example of code block

{% tabs %}
{% tab title="JavaScript" %}

```javascript
const message = "hello world";
console.log(message);
```

{% endtab %}

{% tab title="Python" %}

```python
message = "hello world"
print(message)
```

{% endtab %}

{% tab title="Ruby" %}

```ruby
message = "hello world"
puts message
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
You can make code blocks [span the full width of your window](https://gitbook.com/docs/creating-content/blocks#full-width-blocks) by clicking on the **Options menu** <i class="fa-grip-dots-vertical">:grip-dots-vertical:</i> icon in GitBook next to the block and choosing **Full width.**
{% endhint %}
