O
O
Olk2015-06-30 21:05:00
PHP
Olk, 2015-06-30 21:05:00

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

6 answer(s)
O
Olk, 2015-07-01
@Olk

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.

M
Maksim Zverev, 2015-06-30
@m1skam

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.

A
Alexey Yakhnenko, 2015-06-30
@ayahnenko

As an option, use git + something for auto-deploy.

M
Mr Freeman, 2015-06-30
@vladamir

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

S
Stanislav Fateev, 2015-06-30
@svfat

Is the red-eyed solution suitable? bash script using sed (actual editor with regular expressions) + find (search for necessary files)

A
Adamos, 2015-06-30
@Adamos

IMHO, crap. Editor of many files at once, regular expressions... Why?!
We take the site, make a complete edit to it, check its correctness.
We make a diff with the original and roll this patch on all copies.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question