Is there a way to know which file a piece of html is in?

Asked

Viewed 454 times

1

I am working on a website that all functions have been divided into several folders and subfolders. (I suspect this is the most common)

I wonder if there is an effective way to identify in which . php or . html . js etc is the code snippet that I want to change.

Example:

Index.php calls the header.php footer.php files and content.php, but these files call others...

Which tool would I use to know which file contains the code of a title x?

I currently use F12 (tool console) to see the complete code, select the section I want and keep giving crtl + f in the files. But as the html that the le browser is already processed often do not find with ease.

Thank you.

2 answers

0


What could be done is to use some IDE for the development of the website or some text editor that provides support for HTML or contains plugins make your life easier.

ps: A lightweight and simple text editor to use is the Sublime. On the official website can be found for download.

  • Which sublime plugins could help me ?

  • Take a look here: http://www.tekzoom.com.br/sublime-extensoes-plugins/ . I recommended the Sublime because it is more complete and give you more support if you want to develop using only it or make modifications to the code... But if you want something more emergency, install Notepadqq, open multiple files and do a general search on the file. But to the degree of opinion, I recommend installing Sublime.

  • Thank you very much!

0

In text editors like Notepad++ you have option to search multiple files recursively in subfolders.

This may be the easiest way for cases like the one described in the question.

*Whereas none of these data are in a database.

  • Thank you very much.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.