Answer the question
In order to leave comments, you need to log in
Which IDE/editor to choose for bulk changes (HTML/PHP)?
Good afternoon!
I hope for help in the following question:
There is a site with 50+ subdomains.
Each subdomain is physically a separate site. At the same time, the physical structure on them matches 100%, and the content is somewhere around 90%. Everything is on the same server.
Files often require the same adjustments for all subdomains. Editing each subdomain in turn is not an option, of course.
I am quite satisfied with mass editing of files with regular replacements, but the problem is that all the files for this need to be opened first. Notepad++ does not allow you to do this automatically (i.e. you have to click a hundred times).
What could be the alternative? It is necessary that the editor supports bulk editing by regular expressions and makes it possible to open a set of files in a similar path for editing in one action (probably some command). No other features are required in principle (changes are usually simple).
Thank you!
Answer the question
In order to leave comments, you need to log in
Thanks to everyone for the answers, but I found the most suitable option myself.
"Replace in Path" function in PHPStorm.
It is clear that this is all a crutch, but this is the fastest and easiest way in my case.
You want to use the wrong tool to solve a problem.
Look towards static site generators, they will make your life much easier.
The generator can be installed locally, and only edits can be uploaded to the server.
There is a not bad Ruby generator - middleman. They were also on nodejs, but I did not work with them.
In theory, all this can be collected in gulp, the good thing is powerful, you just need to find a plugin that will arrange data from a json file in Html (similar to middleman). Well, to keep the data in one place, ala admin panel.
It seems to me easier to make a constructor of such 50+ sites (or refactor specifically), and manage them from the admin panel than to find a solution in the IDE
Is the red-eyed solution suitable? bash script using sed (actual editor with regular expressions) + find (search for necessary files)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question