Why HTML comment indentation is displayed differently in browser?

Sessional

New Member
I was trying to beautify my html so that whenever someone click \[code\]view source\[/code\] on my page can see it. So, I decided to write my name as a comment on top of my html. However, what is shown on Google Chrome's \[code\]view source\[/code\] was different from what I see in Notepad++. Like in the picture :
yYskc.jpg
  • left = Google Chrome in view source mode.
  • right = Notepad++
Why I didn't get what I typed in notepad++ ? Is it because Notepad++ use different font with Google Chrome ? If yes, what's the font used in Google Chrome ?How can I get what I want to display nicely on Google Chrome's view source?P.S. I haven't tried it with other browsers yet.
 
Back
Top