Saturday, May 25, 2013

Using Notepad to Edit html pages viewed in Chrome

I struggled this evening with the following task: develop the ability to edit an html page opened in the Chrome browser, using the notepad text editor, without having to download anything. No way I was going to progress to complexity beyond this fundamental, before first accomplishing the fundamental. I have been used to doing this with client-side html pages opened in Internet Explorer.

The problem is that the source code of pages viewed in Chrome cannot be edited to make changes in the page. You can follow a method involving view-page-source, right-click, inspect-element, right-click on <html> tag, edit-as-html to get an unmanageable jumble of code that does not word-wrap or line-break and that contains strange code that you yourself did not input into the source code. So what to do? 

I found that the correct solution had been posted by the genius 'Jr member Fistenharden', way back in November 30, 2011. It is truly stupefying how many clever people have been so confused regarding the solution, both before Fistenharden's astounding discovery and also during the 19 months that have elapsed since.

 Our Einstein, "Junior member Fistenharden", on November 30th, 2011, correctly stated (http://www.chromeoslounge.com/apps-extensions/895-html-editor.html):

"Talk about a chronic lack of lateral thinking, all one has to do to use notepad to edit a html document is; 

1) Fire up the HTML document from windows explorer 
2) Right click the icon you used to fire the document
3) Select edit from the submenu

[what the genius Fistenharden means in the above 3 points: Open the web page that is saved to your hard drive with Google Chrome by clicking on its icon (if Chrome is not your default browser, you may need to 'open with', then 'Chrome'), then right-click on the icon representing the web-page and click edit (if notepad is the default editor), or, right-click on the icon and then click 'open with'...'notepad'. Thereby you will be able to accomplish the miracle of very simply being able to edit a page that is opened in Chrome, in notepad]

...This works for Chrome and IE...I can't believe I as with everyone else overlooked such a simple method. Talk about relief. Also IE9 for some reason is doing what Chrome does, when you select veiw source from in browser it won't let you edit and save the code. Poo to that, just use the easy-peasy 3 steps above if you're a notepad freak and are trying to figure out why you can not edit the source code by right clicking on an opened document and selecting view source from the submenu".

1 Comments:

Blogger Unknown said...

Excellent - as always,the best solutions are the simplest.Thankyou David Virgil for this piece...

10:23 AM  

Post a Comment

<< Home

SM
GA
SC