Economicalhost · Knowledge Base
Knowledge Base › Files & Backups › How to Use the File Manager Code Editor
Files & Backups

How to Use the File Manager Code Editor

The Code Editor lets you edit HTML, CSS, PHP and config files right in cPanel — no downloading and re-uploading. Always back up before editing.

Step-by-step

  1. Open Files → File Manager and navigate to the file you want to edit.
  2. Make a backup copy first — right-click the file → Copy, so you can revert if needed.
  3. Right-click the file → Edit (or Code Edit) to open it in the editor.
  4. Make your changes — the Code Editor adds syntax highlighting and line numbers to reduce mistakes.
  5. Click Save Changes (top right).
  6. Reload your site to confirm the change; if something breaks, paste back the backup copy.

💡 Good to know

  • Enable "Show Hidden Files" in File Manager settings to edit .htaccess and other dotfiles.
  • For config files like wp-config.php, a single typo can take the site down — keep that backup copy.
  • For frequent development, an FTP account with a desktop editor is more comfortable.