title: How to view "generated HTML code" in Firefox?
body: <p>If using Firebug, we can click on the HTML tab, and click to expand each element to see the generated HTML code.  Is there a way to expand it all or get a plain text file?</p>
  
  <p>I just accidentally found out that there doesn't even need to be Firebug.  We can just press CTRL-A (to select all) on the webpage, and then right click and choose "View Selection Source", then we will get a plain text file of the "current HTML code", even will see a <code>&lt;div&gt;</code> that is the Firebug panel that is before the <code>&lt;body&gt;</code> tag if Firebug is open.  But it seems like a weird way to invoke this.  Is there any other way?</p>
  
  <p>(<strong>Update</strong>: generated HTML usually refers to the HTML after JavaScript changes the DOM.  It is the current DOM tree instead of the original source code)</p>