Change color of specific PHP function
I've got an editor theme I really like, but am curious if there's a way to customize individual functions - specifically, I'd like all error_log calls to be highlighted in a different color than the standard theme color for functions and methods. Can I set up custom keywords?
Please sign in to leave a comment.
Hi there,
There is no such functionality.
https://youtrack.jetbrains.com/issue/IDEABKL-5473 and related tickets.
At the same time -- since error_log() is a standard PHP function it is already highlighted in different color -- check this thread: https://intellij-support.jetbrains.com/hc/en-us/community/posts/205987184-Coloring-built-in-and-user-space-functions-differently-
P.S. With "Php Inspections (EA Extended)" plugin you can set a list of functions/methods that can be marked as warning/error -- useful for forgotten debug statements that need to be removed from production code before committing it -- http://stackoverflow.com/a/37801178/783119
That's the closest existing thing I'm aware of that could possibly go with "highlight custom function in different color" request.
Thanks. I thought since there was so much customizable, there might be a way. I'll look at the plugin.