Sign into cPanel
Click on File Manager
Select file
3 options to Edit. Edit is most basic. Code Editor has syntax highlighting and line numbers. Haven't used the HTML editor.
When done, click either 'Save changes' or 'Return to File Manager without saving changes'