# Defining code block language in its creation

**URL:** <https://community.fibery.io/t/defining-code-block-language-in-its-creation/6235>\
**Category:** Ideas & Features\
**Created:** [May 28, 2024, 6:41pm UTC](https://community.fibery.io/t/defining-code-block-language-in-its-creation/6235 "2024-05-28T18:41:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ninthsun91](https://avatars.discourse-cdn.com/v4/letter/n/8c91f0/32.png) [@ninthsun91](https://community.fibery.io/u/ninthsun91)\
**Post date:** [May 28, 2024, 6:41pm UTC](https://community.fibery.io/t/defining-code-block-language-in-its-creation/6235/1 "2024-05-28T18:41:32Z")

</div>

Continuing the discussion from [How to insert the programming language for a code block?](https://community.fibery.io/t/how-to-insert-the-programming-language-for-a-code-block/5720):

Fibery’s current code block is fixed to Plain Text on its creation. It would be great if it supports auto detection or to pre-define the desired language on its creation as it is mentioned in the above discussion.

For example, Fibery creates code block instantly when three backticks are typed (```). However, it is quite common in other mark down editors with no auto detection — Github, Obsidian, IDEs, etc. — to define the language you want to use before creating code block.

````plaintext
```ts for Typescript
```go for Go
``` for Plain text
and so on...

````

### \*

You know, I just realized this WYSIWYG editor in Fibery community is actually supporting this behavior.

````js
// ```js
function hello() {
    console.log("Hello, World!");
}

````

````rs
// ```rs
fn hello() {
    println!("Hello, World!");
}

````
