Sublime Forum

Add a Regex Pattern to a Spell Check Dictionary

#1

I am wondering if it is possible to add a regex pattern to a spell check dictionary in Sublime Text so all the corresponding matches will not be considered as misspellings. This is probably a very simple question but I could not find anything about it.

In particular, I would like to add a DOI regex pattern (doi:)*10\.\d{4,9}/[-._;()/:a-zA-Z0-9]+ so the DOI ‘words’ like doi:10.1234/12334.1234 and 10.1234/12334.1234 will pass spell checking.

0 Likes

#2

unless that “token” has a special scope, which is defined by the syntax definition.

0 Likes

#3
1 Like