1
0
I work on a team of developers. Some like to use Dreamweaver but I really do prefer Notepad++. The problem comes whenever we need to edit one anothers files and the tabs don't match up / align (indentation). I'm curious to why this happens and wondering if there was a way in either Dreamweaver settings or Notepad++ settings to convert these tabs into something different so that they match. Is this possible / how?
Examples
The top image is simple CSS in Notepad++ and the bottom is code inside Dreamweaver.
The image on the left is Notepad++ Tab Settings which is set to 4. The image on the right is Dreamweaver Code Formatting whose tab is also set to 4.
The image on the left is Dreamweaver and the image on the right is Notepad++ which look to be using the same font Courier New 10px, though they do not look it.
Discrepancies
In the example above, in Dreamweaver it seems butting the bracket directly up to the h6
then tab
does a double-space instead of a full 4 spaces where Notepad++ does a "7 space" tab which is very strange.
What display font are you using in Dreameaver and in Notepad++? In your second image (notepad++?) it doesn't look like a fixed width font ... – DavidPostill – 2014-12-02T22:19:12.583
a) Use the same font in both, and b) try turning off the "Indent with 2 spaces" option in Dreamweaver. Also, can you please make the TAB/whitespace characters visible in the editor(s) and re-do the screenshots (so we can see the actual whitespace characters being inserted)? – Ƭᴇcʜιᴇ007 – 2014-12-02T22:27:33.883
@Ƭᴇcʜιᴇ007 I'm not sure how to make the TAB/Whitespace visible in either editor besides highlighting - is there an easier way to do this that would be more helpful? – Howdy_McGee – 2014-12-02T22:35:57.863
Notepad++: View->Show Symbol->Show White Space and TAB. Dreamweaver: View->Code View Options->Hidden Characters. :) – Ƭᴇcʜιᴇ007 – 2014-12-02T22:40:24.737
@Ƭᴇcʜιᴇ007 That's cool, thanks! I've updated the first image to the image with the tab / space highlighting. – Howdy_McGee – 2014-12-02T22:54:00.870
Notepad is definitely NOT using a monospaced font in that image. – Ƭᴇcʜιᴇ007 – 2014-12-03T02:00:11.943
@Ƭᴇcʜιᴇ007 IDK that was default - I haven't changed any style settings - this is Global styles / Global overrides so it's being used everywhere by default. – Howdy_McGee – 2014-12-03T04:00:05.603