Sublime Forum

[SOLVED] Spell ckeck for custom syntax

#1

Hi,

I try to develop a plugin for Pandoc. In the plugin, I also develop a new syntax rule based on JSON-tmLanguage. The syntax seems to work quite well. However, when this syntax is activated, the spell check is not working. If I change the syntax for another one (e.g. LaTeX, Markdown), the spell check works. My guess is that my syntax is defined as code and not text.

How can I change that?

Thank you very much for your help

Guillaume

PS: I am a newbie and I am french… so sorry for the mistakes…

0 Likes

#2

The scopes for code begin with “source”, while those for text begin with “text”, so:

text.plain
text.html.markdown

rather than

source.python
source.whatever

Changing the scopeName in your tmLanguage from source to text has worked for me in the past, but maybe there is something else going on.

Hope this helps,
Alex

0 Likes

#3

Great! It’s worked.

Thank you for your help!

0 Likes