Accessing the text code of an HTML file for editing

  • Context: HTML/CSS 
  • Thread starter Thread starter Loren Booda
  • Start date Start date
  • Tags Tags
    Code File Html Text
Click For Summary

Discussion Overview

The discussion centers around how to edit HTML files without inadvertently opening them as webpages, particularly focusing on the use of appropriate text editors. Participants share their experiences and suggest various tools and methods for editing HTML code effectively.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant expresses difficulty in editing HTML files using Word, which displays the webpage instead of the text code.
  • Several participants recommend using dedicated HTML editors, with Notepad++ being a popular suggestion for Windows users.
  • Another participant suggests using Notepad or Wordpad as alternatives to Word for editing HTML files.
  • There is a mention of changing the file extension from .html to .txt as a workaround to open the file in Word, although this is described as a hack.
  • A participant inquires about how to ensure a NoteBook document can be saved with a .html extension for web compatibility.
  • Another participant provides guidance on accessing the text code of an HTML document by using a text or HTML editor instead of double-clicking the file.
  • One participant expresses satisfaction with Notepad++ after trying it, indicating it meets their needs for editing HTML.

Areas of Agreement / Disagreement

There is a general consensus on the recommendation of Notepad++ as a suitable editor for HTML files, while there are differing opinions on the use of Word and other editors. Some participants suggest alternatives, but no single method is universally agreed upon for all users.

Contextual Notes

Participants mention various operating systems and text editors, indicating that solutions may depend on individual preferences and setups. There is also a lack of clarity on the capabilities of the NoteBook application mentioned.

Who May Find This Useful

This discussion may be useful for individuals looking to edit HTML files on Windows, particularly those who have been using inappropriate tools like Word and are seeking better alternatives.

Loren Booda
Messages
3,115
Reaction score
4
I had installed FileZilla FTP freeware on my computer.

Later, I was unable to edit my HTML file (pushed wrong button?) Whenever I tried to open or edit it using Word (my only editor which now seems to accept HTML), the webpage would appear, rather than the text code. I am using Windows 7 on a PC.

How do I edit the text code within an HTML file without the webpage popping up instead?
 
Technology news on Phys.org
Get a real HTML editor. Word is a WYSIWYG (What You See Is What You Get) word processor. Open it in Notepad (or Wordpad... or whatever it is in Windows 7) if you don't feel like downloading a 3rd party text editor.
 
You might try something like notepad++ to edit that.

Not sure how you'd tell Office to show it to you as markup. I suppose you could change the file extension from .html to .txt so it thinks it's just a text file. Lame, and a hack, but will probably work.

Can't say more since I run Linux and LibreOffice. But notepad++ is pretty a pretty good Windows editor, and it's free. It should solve that problem.
 
Get notepad++. It's great, as far as Windows editors go. (You should really use vim. :wink:)
 
If I have a NoteBook document in HTML code, how do I label its extension as .html and insure that it can appear on the web?

If I have an HTML document that consistently appears as a webpage when I attempt to open, view or edit it, how do I access the text code for editing?
 
Loren Booda said:
If I have a NoteBook document in HTML code, how do I label its extension as .html and insure that it can appear on the web?

I don't know NoteBook, but I did a quick search and I understand it saves as a text file by default. You should just be able to save it with the .html file extension (i.e. Save As...). That's what it looks like to me right now. Just about every GUI text editor I've ever seen works that way.

Loren Booda said:
If I have an HTML document that consistently appears as a webpage when I attempt to open, view or edit it, how do I access the text code for editing?

The tools for that job are a normal text editor or some kind of HTML editor. Use one of those and it shouldn't be an issue. If you just double-click the file in your file manager, it'll probably just load it in your browser. You should be able to right click on it and choose something like "Open with..." and choose the right editor. Or you can start the editor directly and open it from there.

My overall advice is still the same. Download notepad++ and use that. Problem solved.
 
I'll echo the Notepad++ recommendation. I cringe at the thought of trying to use Word to edit html. Notepad++ is a free and open source program; it really is the best text editor for Windows.
http://notepad-plus-plus.org/

At the very least, use Microsoft's built in Notepad rather than Word.
 
You all are wonderful! Notepad++ works beautifully!
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
10
Views
2K
Replies
7
Views
3K