# Code Block improvement in Display View

**URL:** https://discourse.notenik.app/t/code-block-improvement-in-display-view/597
**Category:** Feature Requests
**Created:** [October 18, 2024, 4:09am UTC](https://discourse.notenik.app/t/code-block-improvement-in-display-view/597 "2024-10-18T04:09:08Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![zgr](https://discourse.notenik.app/user_avatar/discourse.notenik.app/zgr/32/225_2.png) [@zgr](https://discourse.notenik.app/u/zgr)
#### Post date: [October 18, 2024, 4:09am UTC](https://discourse.notenik.app/t/code-block-improvement-in-display-view/597/1 "2024-10-18T04:09:08Z")

</div>

I’m facing an issue with the rendering of code blocks.

- If a block has language defined inside, it is not rendered properly.
- Any text **following** that particular language-defined block is rendered badly.
- Preceding text is OK.

Below is a sample text

 ![image](https://discourse.notenik.app/uploads/db0641/original/1X/1f472fc4bf16ea6972e371f3b0f9615f6c75f214.png)  
 ![Notenik 2024-10-18 07.01.13](https://discourse.notenik.app/uploads/db0641/original/1X/51a09cf55dbc56f772a02d579b521d848dee453e.png)

If language is removed everything is fine

 ![Notenik 2024-10-18 07.02.06](https://discourse.notenik.app/uploads/db0641/original/1X/7646765be53dd57e0dcfe17f8eeff04b0e984204.png)  
 ![Safari 2024-10-18 07.02.17](https://discourse.notenik.app/uploads/db0641/original/1X/f4e90394176250258627db2ff8590cc45622f118.png)

I’m not asking for code-language recognition here, which is a completely separate feature (who wouldn’t want that? 🙂). Properly rendered raw text is what I seek.

Thanks.

---

<div class="post-metadata">

### Author: ![hbowie](https://discourse.notenik.app/user_avatar/discourse.notenik.app/hbowie/32/6_2.png) [@hbowie](https://discourse.notenik.app/u/hbowie)
#### Post date: [October 18, 2024, 3:59pm UTC](https://discourse.notenik.app/t/code-block-improvement-in-display-view/597/2 "2024-10-18T15:59:36Z")

</div>

I think I see what you’re talking about.

You’re putting the name of a language after the first three backticks… is that right?

But if you look at the Knowledge Base page concerning fenced code blocks, you [don’t see any mention of this](https://notenik.app/kb/fenced-code-blocks.html) as an option.

So no, this option is not currently supported.

Let me look into adding some support for this.

Thanks for bringing this to my attention.

---

<div class="post-metadata">

### Author: ![zgr](https://discourse.notenik.app/user_avatar/discourse.notenik.app/zgr/32/225_2.png) [@zgr](https://discourse.notenik.app/u/zgr)
#### Post date: [October 18, 2024, 5:36pm UTC](https://discourse.notenik.app/t/code-block-improvement-in-display-view/597/3 "2024-10-18T17:36:04Z")

</div>

> [@hbowie](#):
>
> You’re putting the name of a language after the first three backticks… is that right?

Exactly!

This is common for markdown editors that support syntax highlighting.

---

<div class="post-metadata">

### Author: ![hbowie](https://discourse.notenik.app/user_avatar/discourse.notenik.app/hbowie/32/6_2.png) [@hbowie](https://discourse.notenik.app/u/hbowie)
#### Post date: [October 18, 2024, 5:58pm UTC](https://discourse.notenik.app/t/code-block-improvement-in-display-view/597/4 "2024-10-18T17:58:58Z")

</div>

Check out the [latest beta](https://discourse.notenik.app/t/notenik-15-5-4-available-for-beta-testing-on-october-18th-2024/598) and let me know if this helps.

---

<div class="post-metadata">

### Author: ![zgr](https://discourse.notenik.app/user_avatar/discourse.notenik.app/zgr/32/225_2.png) [@zgr](https://discourse.notenik.app/u/zgr)
#### Post date: [October 18, 2024, 8:23pm UTC](https://discourse.notenik.app/t/code-block-improvement-in-display-view/597/5 "2024-10-18T20:23:18Z")

</div>

That worked. thank you!
