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
- Open Files → File Manager and navigate to the file you want to edit.
- Make a backup copy first — right-click the file → Copy, so you can revert if needed.
- Right-click the file → Edit (or Code Edit) to open it in the editor.
- Make your changes — the Code Editor adds syntax highlighting and line numbers to reduce mistakes.
- Click Save Changes (top right).
- 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.