0

I have my code perfectly tabbed in Notepad++, but it is a mess in the source code in Google Chrome.

Google Chrome Notepad++

How can I fix this?

Thanks in advance!

Jon
  • 173
  • 2
  • 3
  • 12
  • 1
    Don't try fix this. It literally is the least worthwhile thing you will ever do. The indentation in the output makes absolutely no difference. Use the inspector if you want to review with nice indentation. Even if you can make the output nice now with flat HTML, it will be impossible once you move on to generating HTML with server-side code. *As long as your working code is formatted correctly, this is all that matters*. – Marty Sep 28 '15 at 08:19

2 Answers2

0

Replace all occurrences of a tab (\t) with two spaces (), or replace all occurrences of two consecutive spaces with a tab.

Robby Cornelissen
  • 91,784
  • 22
  • 134
  • 156
0

This is because of Tabs vs Spaces,

There is an answer https://stackoverflow.com/a/7471232/184201 for how to do that.

Community
  • 1
  • 1
Ahmed Ashour
  • 5,179
  • 10
  • 35
  • 56