S
S
smitus2015-09-23 13:38:44
phpstorm
smitus, 2015-09-23 13:38:44

Setting up your function highlighting in phpshtorm. Is it possible to?

In the settings, I can specify the color and highlight mysql queries, for example (mysql_query or mysql_num_rows) they will be clearly visible in the code, etc. But I make all queries to the database through my functions like my_query my_num_rows... Such functions are created in order to track the speed of queries. I could add my functions to the homesite and they stood out not as functions but as mysql a-tions. Does anyone know if this can be done here. Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
Cat Anton, 2015-09-23
@27cm

Such functions are designed to track the speed of requests.

That's what profilers are for.
Can I have a screenshot so that mysql_query() and my_query() are and stand out differently? In my opinion, this is not possible, phpStorm highlights all functions equally. What version of storm?
There is no such possibility in PhpStorm.
But still, there are profilers to measure the speed of functions. Wrapping each function in its own to log errors is also a so-so solution.

S
smitus, 2015-09-23
@smitus

628b65464c1d49e69a88fec911e6109a.jpg
In the photo, I circled in blue my functions that I want to make highlighted, bold. Red are those functions that are just functions and I know how to paint them (just in the settings).
And another question is how to turn off the error that tints me with yellow.
Having your own functions, you can do many different useful things. Record sampling errors, etc. I have not used mysql_query directly for a long time, having replaced them with my own functions.
Unfortunately, I can’t make a print screen now, because I reinstalled homesite and these settings got lost.
Maybe I didn't describe the question accurately.
Roughly speaking, I need to make sure that a certain function, for example my_query(), is highlighted not like all other functions, but somehow differently, for example, in bold. Something like this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question