highlight builtins (python)

I think in cm5 there was a cm-builtin css class.

I don’t see an obvious way of doing builtins in cm6.
Things like NotImplemented

I saw this post:

Best way to highlight specific keywords - #2 by marijn

maybe it’s the same answer

For now, the language packages don’t distinguish built-in identifiers from other identifiers because that muddles up the syntax tree and requires shipping an (often large, always changing) list of built-in names with every mode.

have same problem, can I fork the python package and modify the grammer file to make it work?

1 Like