HI I was wondering if someone could help me . I am trying to edit a .htm file in text editor for a web site. It does not work. So I tried opening in with netscape browser at 'view scource'...sure I can view but can't edit it. As Im new to this game Im quite confused, any help would be great,
thanks
David

Dani AI

Generated

Short practical note for : a browser "View Source" window only shows the HTML the server or browser produced; it does not let you edit the file that lives on disk or on your web host. To change the source you need write access to the actual file (either the local .htm on your computer or the file on the server).

If the page is local (address starts with file://), open the file from Explorer/Finder with a text or code editor. If it is hosted (http/https), download or open it through your host (FTP, SFTP or the hosting control panel) to edit the real file. If you cannot save edits, check file properties/permissions (Windows: remove Read-only; Unix: adjust owner/mode). Note: some sites are generated by server-side scripts (PHP, ASP, etc.), so there may be no static .htm to edit — in that case edit the server-side source.

Tools and quick tips: use a code editor (Notepad++ or Visual Studio Code) for syntax highlighting and correct UTF-8 saving. Always back up before changing live files and preview changes in the browser after saving. As and touched on viewing and local editing, following the server-vs-local checklist above solves most beginner problems.

Recommended Answers

All 2 Replies

If you're creating a Web document ( or htm/html/xhtml etc. ) in a text editor and want view the file that you're working on, simply save your work and open the file in your browser. You can then continue to edit, save your work, and view the results, switching back forth between the text editor and the browser to see the effects of your edits...

Hope it helps you getting started...

You can also save the html file, and open it with Notepad.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.