Sublime Forum

How do I add keywords and methods to the Python syntax file?

#1

Hello, I’ve been trying to add keywords and methods to the default Python syntax highlighting file (Python.tmLanguage) for about 3 hours now, but so far I have miserably failed.

So in this example I would like to simply add cmds and addAttr to the definition file so they get highlighted as a recognized words:

cmds.addAttr(dupName, ln=attr, dt="string")

Could someone please help me to do this? I use SublimeText 2 on Windows 7.

Here’s how it looks now:

Thanks,
Seith

0 Likes

#2

Am I to understand that it’s impossible to add keywords to the Python definition file? Or that it’s too complicated?

0 Likes