Skip to main content
Inspiring
April 26, 2006
Answered

code indents

  • April 26, 2006
  • 3 replies
  • 432 views
Is there any way the cf codes are always aligned what I set originally. for example, I use homesite at work and at home. If I bring the codes and work at home, the code indents are all messed up. they do not display what I typed at work. do you know why and how i can fix this problem.
This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer boughtonp
Sixth item down on the toolbar to the left of the edit area, just under the # above the green monitor.
http://projekti2.ilkansivu.net/editorivertailu/Macromedia_HomeSite_5.gif

3 replies

Inspiring
April 26, 2006
I should check the tab sizes. btw, where can I find the backward P button in homesite?
boughtonpCorrect answer
Inspiring
April 26, 2006
Sixth item down on the toolbar to the left of the edit area, just under the # above the green monitor.
http://projekti2.ilkansivu.net/editorivertailu/Macromedia_HomeSite_5.gif
Inspiring
April 26, 2006
My guess would be that you're mixing tabs and spaces, and have different tab sizes (the number of character spaces that a tab occupies) between home and work.

Having different sizes tabs is perfectly fine - some people will use 2, others will use 4, others 8, etc.
If you hunt around in the HomeSite options you should be able to change it to keep it consistant.

However, the problem itself is solvable by never using spaces for indenting - simply use one tab for each code indent level.

To make invisible characters (including spaces and tabs) visible, click the backwards P (¶) button in HomeSite and it will show spaces as dots and tabs as arrows - make sure there are no bits that look like ">····>" or "··>" and so on.
If you find lots of occurances like that, it might be worth replacing "····" (ie: [space][space][space][space]) with a single tab.

Hope that helps.