Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In Internet Explorer I can open a local .html file and edit it by selecting "Source" in the "View" menu," make a quick change, and then "Refresh" (reload) the web page.

How can I do that with Google Chrome?

Can I have the .html file open in Windows Notepad? (I like notepad because it's really fast.)

share|improve this question

3 Answers 3

up vote 15 down vote accepted

Ctrl+Shift+I or F12 -> Elements, It should show your source. Right click on any element and click Edit as HTML

Edit:

There are some extensions that look like what you want: https://chrome.google.com/extensions/search?itemlang=&q=editor

ChromeEditor & Live WebSite Editor look promising.

Added by barlop
I see that right clicking the <HTML..> or </HTML> tag and clicking "edit as html". allows me to edit anywhere within it. Choosing the opening tag means the popup for editing just covers all the html source that's there - which is very neat in terms of space when editing. Choosing the closing tag might be useful as the popup then appears under the html so you see a before/after.

share|improve this answer
    
sometimes I right click and it says edit html, sometimes edit as text. sometimes it refreshes automatically, sometimes it doesn't –  barlop Sep 26 '10 at 11:54
1  
try clicking exactly on the tag name for instance <body> –  Casual Coder Sep 26 '10 at 12:10
1  
This is debugging tool. It is not editing tool. For creating pages use something like Aptana, Netbeans or other more suitable IDE. With tag completion, reference, javascript completion etc. . This is much more productive way to create web pages. If you insisting on using Chrome Developer Tools as your html editor there is copy as html context menu option. So you can paste it back to your main text editor of choice or other tool. –  Casual Coder Sep 26 '10 at 13:50
1  
Closest to what you are talking about that I am aware of, is Firebug addon in Firefox. Among many various javascript/css/dom debugging tools it gives you in context menu on a page Open with Editor option. You can add several editors. Of course you can configure it to use Notepad. –  Casual Coder Sep 27 '10 at 10:50
1  
it's a little faster using F2 to edit and Ctrl+Enter to commit –  Benjamin Jun 27 '13 at 8:10
  1. open DevTools.
  2. open Elements panel.
  3. select html or body or another element you want.
  4. open console by Esc.
  5. write $0.contentEditable = true

now you can edit text on the page and move images but it is not that you really want :)

share|improve this answer
1  
not really what I want, but that is a very amusing feature! –  barlop Sep 29 '10 at 15:50
    
Am I right that this is on by default in current Chrome versions? I mean, I already can edit in the Elements tab. –  Alex May 24 '13 at 7:21
    
I just gave you +100 using this feature. –  Benjamin Jun 27 '13 at 8:13
    
Really amazing feature –  iroel Jul 19 '13 at 23:37

You can try this InlineEditor to edit and save static html in browser pages here is the demo

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.