# Improved AI content labelling in the composer for post content

**URL:** <https://meta.discourse.org/t/improved-ai-content-labelling-in-the-composer-for-post-content/417601>\
**Category:** Announcements\
**Tags:** ai\
**Created:** [17 november 2026 om 01:26 UTC](https://meta.discourse.org/t/improved-ai-content-labelling-in-the-composer-for-post-content/417601 "2026-11-17T01:26:26Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![per1234](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/per1234/32/569645_2.png) [@per1234](https://meta.discourse.org/u/per1234)\
**Post date:** [18 november 2026 om 02:58 UTC](https://meta.discourse.org/t/improved-ai-content-labelling-in-the-composer-for-post-content/417601/11 "2026-11-18T02:58:09Z")

</div>

I see that the “post menu \> Add AI Content… \> Code” feature adds the `javascript` language identifier to the inserted code fences:

> <https://github.com/discourse/discourse/blob/fe1c8e98cc3a1f877d208b7c1b229c47003fcbe8/frontend/discourse/app/services/composer.js#L569-L569>

Having this language identifier hardcoded is not very friendly to forums where code blocks are used for things other than JavaScript code.

Please remove the hardcoded language identifier, so that the feature instead adds code fences without a language identifier:

````markdown
``` ai
// AI content
```

````

This will allow each forum’s `Default code lang` site setting to apply to the code block (and of course the user can still specify a different language if needed).

---

_[View the full topic](https://meta.discourse.org/t/improved-ai-content-labelling-in-the-composer-for-post-content/417601)._
