Web Hosting: Edit Text Files and HTML Files in cPanel

Modified on Sat, 06 May 2023 at 12:58 PM

Note: also see the article: Access File Manager in cPanel

In the cPanel file manager, you can directly edit text files and HTML files. Select a file and use the top action menu to select an action, or right-click a file to bring up an action menu. As the file list is usually long, you can find a certain file more easily by going into the appropriate folder, then using your internet browser page search function to find the file name ("Control + F" on Windows, "Command + F" on Mac). You can also sort the file list by "Name", "Size", and "Last Modified" by clicking on the certain column heading.

When a file is selected, In the top action menu or in the right-click menu choose "Edit" for a raw text editor (works for a number of different text code types, like HTML, PHP, or Javascript), or choose "HTML Edit" for a visual HTML editor (in the visual HTML editor, click "Source" at the top, to toggle a raw text HTML editor also). 

Note: For more information on the visual HTML editor, see the cPanel "HTML Editor" article: https://docs.cpanel.net/cpanel/files/html-editor/

Any changes made when the editor is still open in a web browser can be undone by using the back arrow in the editors.

After you have made changes to the text or HTML, make sure to save the changes in the editor.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article