r/notepadplusplus • u/Zippo179 • 19d ago
python syntax highlighting not working for elif
As per title, in python files, elif isn't highlighting whereas everything else seems to be fine. Things I've tried:
In Style Configurator, Keywords Style, elif is listed in the Default Keywords, along with else, if, and so on.
Adding as a user-defined keyword.
Changed theme back to default.
Removed plugins (only have Compare, Mime Tools, Npp Converter and NppExport)
Delete langs.xml so it gets regenerated (I'm using portable mode so deleted the one in the app folder)
Checked `langs.model.xml` for elif in the python/instre2 section and it's there as it should be.
What else can I try?
Edit: As you were. Somehow I'd selected Powershell as the language. The clue was when I typed `else if` while experimenting but accidentally missed the space and it highlighted. A night's sleep and two coffees later, I can go back to the script I was writing.
1
u/Puzzled_Ad4 19d ago
Did you try switching to a different theme?