# Format as code block

**URL:** https://community.zammad.org/t/format-as-code-block/2630
**Category:** Feature requests
**Created:** [June 14, 2019, 7:48am UTC](https://community.zammad.org/t/format-as-code-block/2630 "2019-06-14T07:48:06Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ecomsilio](https://community.zammad.org/user_avatar/community.zammad.org/ecomsilio/32/297_2.png) [@ecomsilio](https://community.zammad.org/u/ecomsilio)
#### Post date: [June 14, 2019, 7:48am UTC](https://community.zammad.org/t/format-as-code-block/2630/1 "2019-06-14T07:48:06Z")

</div>

We often sent code examples in our tickets. The code (html, JS) gets broken in some cases due to line breaks or to quote marks.

I know that there are some text format shortcuts. Maybe you can add one to format code blocks.

![42](https://community.zammad.org/uploads/default/original/2X/4/418d6b2ea81e90f5acbd9c3d9cb31cb4826350ff.png)

Here you see a simple html line which gets broken by the quote marks.

 ![36](https://community.zammad.org/uploads/default/original/2X/a/afedb153decc81219e83ff9287aa263b41025d8a.png)

---

<div class="post-metadata">

### Author: ![MrGeneration](https://community.zammad.org/user_avatar/community.zammad.org/mrgeneration/32/9260_2.png) [@MrGeneration](https://community.zammad.org/u/MrGeneration)
#### Post date: [June 14, 2019, 7:52am UTC](https://community.zammad.org/t/format-as-code-block/2630/2 "2019-06-14T07:52:03Z")

</div>

Yes, I feel you!  
I think this will be covered by this issue already: [WYSIWYG / RichText Editor · Issue #330 · zammad/zammad · GitHub](https://github.com/zammad/zammad/issues/330)

@anon29869905 might need to correct me here. 🙂

This got just a bit more important with the release of our knowledge base.  
So short: I want it too. 😃

---

<div class="post-metadata">

### Author: ![anon29869905](https://community.zammad.org/letter_avatar_proxy/v4/letter/a/b782af/32.png) [@anon29869905](https://community.zammad.org/u/anon29869905)
#### Post date: [June 14, 2019, 8:02am UTC](https://community.zammad.org/t/format-as-code-block/2630/3 "2019-06-14T08:02:36Z")

</div>

Everything @MrGeneration wrote 👍

---

<div class="post-metadata">

### Author: ![dvnkln](https://community.zammad.org/user_avatar/community.zammad.org/dvnkln/32/2736_2.png) [@dvnkln](https://community.zammad.org/u/dvnkln)
#### Post date: [June 14, 2019, 8:16am UTC](https://community.zammad.org/t/format-as-code-block/2630/4 "2019-06-14T08:16:32Z")

</div>

![tumblr_p25u02gOOP1u4oawxo1_500](https://community.zammad.org/uploads/default/original/2X/e/e88e0609123cb047708bce40cc3fb80e5aa7dadb.gif)

---

<div class="post-metadata">

### Author: ![system](https://community.zammad.org/uploads/default/original/1X/5c5afaea2d23f811dbec33cd4edb02fa29d3262f.png) [@system](https://community.zammad.org/u/system)
#### Post date: [August 3, 2020, 11:48pm UTC](https://community.zammad.org/t/format-as-code-block/2630/5 "2020-08-03T23:48:08Z")

</div>

This topic was automatically closed after 416 days. New replies are no longer allowed.
