R
R
russeljo2020-06-18 20:15:25
phpstorm
russeljo, 2020-06-18 20:15:25

How not to print dollar sign in php, or at least in PhpStorm?

Maybe there is some plugin that automatically adds dollar signs? Or some solution.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2020-06-18
@Maksclub

And now the funniest part.
The dollar is needed for unambiguous parsing of the syntax of the language by the parser, parsing certain constructions into lexemes / tokens. PhpStorm also parses the language, which means you want to make a separate parser that would not rely on the dollar :) But this will lead to interesting things and situations.
That is, you need to do a job that is more complicated than the existing parsers are doing now, because you need to take into account everything that is, but without one of the main reference points .
You need to come to terms with this. Even if you hide it visually, you will have to print it. And since you need to print and hide, then amazing (no) situations can arise when there is inconsistency between what should be and how it looks (that is, whether there is a dollar or not - it looks the same)
If the dollar heats up (and it can heat up , I can understand you (honestly, because the element is counter-intuitive for the current year) - changing the language seems like an option.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question