I
I
iMrBrown2019-07-18 12:27:16
phpstorm
iMrBrown, 2019-07-18 12:27:16

How to enable js syntax highlighting in PHPStorm when working with remote files?

Greetings.
JS file from local machine
5d303ac1415d0988885671.png
JS file if opened remotely
5d303b131da7e434734768.png
PS with PHP files there is no such problem.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Demian Smith, 2017-10-24
@search

I must disappoint you, but the phrase "php is made to die" applies exactly to your problem. The core of the language itself does not provide a scenario for the "eternal" work of the script. Memory is consumed inefficiently and Fatal error: Out of memory is what your script is waiting for in any case.
The simplest solution in your case is to run your test script with a cron. Let's say, every minute, let him work and die. And so every minute.

I
Ilya Gerasimov, 2017-10-24
@Omashu

does php have a memory leak concept? yes, it can be clogged with something (already unnecessary) as the script runs, but in the end it all comes down to the death of the process and this should happen as soon as possible.
for your task, you can take nodejs + 2 libraries + 40 lines of your code

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question