TheAlphaReturns
TheAlphaReturns

Reputation: 5

Right Click > Edit not Showing up on HTML Documents

When I go to an HTML Document in my file explorer, I right-click, but the edit option doesn't show up! I want to open the file in an editor. This is the code inside my file:

<!DOCTYPE html>
<html>
    <head>
        <title>HTML TEST</title>
    </head>
    <body>
        <p>An html test</p>
    </body>
</html>

I am using Windows 10 64-bit latest version as of 5/16/20. Here are some screenshots:

The Test HTML file

The Right-Click Menu

Upvotes: 0

Views: 1003

Answers (5)

Mister Robato
Mister Robato

Reputation: 176

Save this in a batch file Add Edit Command To HTML.bat & run:

reg add "HKCR\SystemFileAssociations\.html\shell\Edit\command" /ve /t REG_SZ /d "notepad.exe \"%%1\"" /f
pause

This adds an Edit command to the .html file context menu to be open with Notepad.

If you don't have Notepad in PATH, then put full path to Notepad instead of notepad.exe

The SystemFileAssociations is the location where you specify for example the .html file type association for context menu and in the shell you put the Edit command.

Upvotes: 1

Ali Hassan
Ali Hassan

Reputation: 966

go to desktop and press windows + R.

  1. write regedit Press Enter.
  2. go to the HKEY_CLASSES_ROOT expand it.
  3. Then expand *.
  4. Then expand shell.
  5. Right click on shell and add new key and name it Edit.
  6. Then Right click on Edit and add new key and name it command.
  7. Then go to Default and Right click on it and modify it.
  8. Paste that path C:\WINDOWS\system32\notepad.exe""%1 in text box.

Then you will get edit option everywhere whenever you press right click.

Upvotes: 1

mosesajire
mosesajire

Reputation: 86

To edit the html file,

-- Right-click the file

-- Click on 'Open with'

-- Select your text editor (if no text editor is displayed, click on 'Choose Default Program'. Click on a text editor and then click OK). If you have not installed any text editor, click on 'Notepad'.

Upvotes: 0

Chanfir
Chanfir

Reputation: 73

(right click->edit) on windows will open the file with notepad

notepad is not defined to open .html file by default

You have two options :

1)you need to have another editor that sets itself as default while installing such as notepad++

2) you need to do right click-> open with->choose another app->select notepad and check (always use this app to open .html files) after that you will have edit option on right click for html files

Upvotes: 0

Aman Kumayu
Aman Kumayu

Reputation: 389

Visit this page, I think its the issue with your notepad.

Upvotes: 0

Related Questions