First of all, thank you for this extension! It makes my code comments and printouts much more readable :)
I’ve run into an issue when using \n and \t for string formatting in python print() calls. It seems that the escaped characters 'n' and 't' are merged with the following word, which is then correctly detected as a spelling error.
For example:
print("this\nis\na\nmulti-line\n\tindented\ntest")
results in words "is", "a", "multi", "indented" and "test" being interpreted incorrectly for spell checking.
Is there a way to configure Codebook to treat \n and \t as token separators or ignore them for spelling purposes?
Alternatively, is there already a way to prevent spelling errors from being reported for strings like the example above?
First of all, thank you for this extension! It makes my code comments and printouts much more readable :)
I’ve run into an issue when using
\nand\tfor string formatting in python print() calls. It seems that the escaped characters 'n' and 't' are merged with the following word, which is then correctly detected as a spelling error.For example:
results in words "is", "a", "multi", "indented" and "test" being interpreted incorrectly for spell checking.
Is there a way to configure Codebook to treat
\nand\tas token separators or ignore them for spelling purposes?Alternatively, is there already a way to prevent spelling errors from being reported for strings like the example above?