Sublime Forum

Single commands highlighted for unknown reasons

#1

Hello,
I have a python code, suddenly some commands got highlighted and I dont know why or how to stop it.
The rest of the code isnt highlighted at all. It occurrs whenever I write new text anywhere in the File. It also appears with correct syntax.
I would like to know why the highlighting occured and how to disable it.
purple_highlight

0 Likes

#2

I would guess you have something wrong which is not shown in the screenshot, because the color of the = is already wrong.

0 Likes

#3

Yes, I had a false declaration of an numpy array few lines above which caused this.
Everything is back to normal now also the “=”
But I still dont really get how the highlighting is working, it also appeared above the lines of the wrong code.

0 Likes

#4

That’s because your so-called valid codes, are not valid.

0 Likes

#5

Obviously the triple for loop isnt correct, just wanted to show how every second is highlighted.
It did appear with valid code above the wrong array though.

0 Likes

#6

Without reproducible codes, I consider discussions are wasting time. Just like arguing whether unicorn exists.

1 Like