Add to Python Syntax Highlighting in Notepad++

phonix

New Member
I wanted to add syntax highlighting for Python built-ins in Notepad++. I modified langs.xml in AppData/Notepad++ by adding this line to the python tag:\[code\]<Keywords name="instre2">len max min sum map str int reduce</Keywords>\[/code\]I also added this line to the python tag in stylers.xml in the same location:\[code\]<WordsStyle name="BUILTINS" styleID="13" fgColor="8080FF" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" keywordClass="instre2" />\[/code\]When I go to Settings->Style Configurator->Python->BUILTINS, I see my list of built-in functions as well as the colour I assigned to them. However, when editing a Python file, the built-in functions are not highlighted. Why is this?I found something similar here, but I could not find the file LexPython.cxx. How do I resolve this? Is it possible to resolve?
 
Back
Top