Reputation: 5
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:
Upvotes: 0
Views: 1003
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
Reputation: 966
go to desktop and press windows + R
.
regedit
Press Enter
.HKEY_CLASSES_ROOT
expand it.*
.shell
.Right click
on shell
and add new key
and name it Edit
.Right click
on Edit
and add new key
and name it command
.Default
and Right click
on it and modify
it.C:\WINDOWS\system32\notepad.exe""%1
in text box.Then you will get edit option everywhere whenever you press right click.
Upvotes: 1
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
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