# Disable Spell Checking in Code Blocks

**URL:** https://community.silverbullet.md/t/disable-spell-checking-in-code-blocks/1688
**Category:** v1: Troubleshooting (legacy)
**Created:** [January 23, 2025, 8:02am UTC](https://community.silverbullet.md/t/disable-spell-checking-in-code-blocks/1688 "2025-01-23T08:02:05Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![username\_smusername](https://community.silverbullet.md/letter_avatar_proxy/v4/letter/u/b3f665/32.png) [@username\_smusername](https://community.silverbullet.md/u/username_smusername)
#### Post date: [January 23, 2025, 8:02am UTC](https://community.silverbullet.md/t/disable-spell-checking-in-code-blocks/1688/1 "2025-01-23T08:02:05Z")

</div>

When using code blocks there’s a _lot_ of words/commands/phrases that aren’t real words.

Is there a simple(ish) way of disabling spell checking, but only inside of code blocks?

There’s [this github issue with the same problem/request](https://github.com/silverbulletmd/silverbullet/issues/421) and it’s mentioned as [being resolved in a commit](https://github.com/jamesob/silverbullet/commit/75aa3171ff1db018d30b4ceef318c7e3631140b2), but it looks like its still happenening?

Thank you!

---

<div class="post-metadata">

### Author: ![MrMugame](https://community.silverbullet.md/user_avatar/community.silverbullet.md/mrmugame/32/358_2.png) [@MrMugame](https://community.silverbullet.md/u/MrMugame)
#### Post date: [January 23, 2025, 11:36pm UTC](https://community.silverbullet.md/t/disable-spell-checking-in-code-blocks/1688/2 "2025-01-23T23:36:17Z")

</div>

The css attribute seems to be only set for Fenced code blocks, i.e. triple backticks. Not for indented codeblocks nor for inline code.

I think it should really be set for `InlineCode CodeText`

EDIT: My conscience can’t do a pull at the moment, because I should really be studying 😶. Maybe someone else can fix it?

_web/editor\_state.ts_

```js
{
  selector: "InlineCode CodeText",
  disableSpellCheck: true,
},

```

and `disableSpellCheck` should be removed for `FencedCode`
