HighDots Forums  

Indent code problems

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Indent code problems in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
bbicknell
 
Posts: n/a

Default Indent code problems - 02-11-2005 , 01:25 PM






I'm using the DWMX7.01 trial version to try to decide to switch from HomeSite
(I'm sick of being able to look at only one document at a time in
HomeSite--this product really needs to be updated to enable viewing docs side
by side) anyway, I'm looking for duplicating getting the same functionality in
code editing. And what I am finding is : Indent with spaces does not work
Yes, I have Edit > Preferences > Code Format set to 'Indent with 2 spaces.' But
pressing tab, ctrl-shift->, or ctrl-alt-], as well as auto indent all result in
a tab character being inserted, never 2 spaces. This would be a show stopper
for my evaluation as our coding standards demand always indenting with spaces
and never with tabs. Ctrl-shift-tab doesn't outdent. It works in HomeSite.
Even trying to be clever and using the HomeSite keyboard shortcuts does not
result in ctrl-shift-tab in doing anything other than inserting another tab
(and definitely not two spaces). I've tried mining the Knowledge Base but have
not found anything like this issue. Thanks!


Reply With Quote
  #2  
Old   
Tim Gallant
 
Posts: n/a

Default Re: Indent code problems - 02-11-2005 , 01:31 PM






Would this have anything to do with the default setting in user preferences?
I.e. the default is for no more than one non-breaking space.

tim

"bbicknell" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
I'm using the DWMX7.01 trial version to try to decide to switch from
HomeSite
(I'm sick of being able to look at only one document at a time in
HomeSite--this product really needs to be updated to enable viewing docs
side
by side) anyway, I'm looking for duplicating getting the same
functionality in
code editing. And what I am finding is : Indent with spaces does not
work
Yes, I have Edit > Preferences > Code Format set to 'Indent with 2
spaces.' But
pressing tab, ctrl-shift->, or ctrl-alt-], as well as auto indent all
result in
a tab character being inserted, never 2 spaces. This would be a show
stopper
for my evaluation as our coding standards demand always indenting with
spaces
and never with tabs. Ctrl-shift-tab doesn't outdent. It works in
HomeSite.
Even trying to be clever and using the HomeSite keyboard shortcuts does
not
result in ctrl-shift-tab in doing anything other than inserting another
tab
(and definitely not two spaces). I've tried mining the Knowledge Base but
have
not found anything like this issue. Thanks!




Reply With Quote
  #3  
Old   
bbicknell
 
Posts: n/a

Default Re: Indent code problems - 02-11-2005 , 02:33 PM



Nope, doesn't have to do with the space run preference. I checked with a
colleague who has Dreamweaver 6.0 and it behaves exactly the same way: always
indents with tabs, never indents with spaces. So a) this problem has been
around a while and b) it's not just me. Another interesting detail, the line
is 'Indent with [ number ] [ type ].' If I try insert with 2 tabs (or four or
six) it only inserts one tab. It looks like this preference is being ignored
altogether.


Reply With Quote
  #4  
Old   
CMBergin
 
Posts: n/a

Default Re: Indent code problems - 02-11-2005 , 02:39 PM



That preference setting doesn't affect a whole lot. It won't change what
your tab key does or any of the other shortcuts. It only changes DW
inserted HTML, i.e., your <td> tags will be indented two spaces instead of
one tab in tables inserted from design view. When you're coding by hand or
involved with server-side code, you'll still have to hit the spacebar twice.

"bbicknell" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
I'm using the DWMX7.01 trial version to try to decide to switch from
HomeSite
(I'm sick of being able to look at only one document at a time in
HomeSite--this product really needs to be updated to enable viewing docs
side
by side) anyway, I'm looking for duplicating getting the same
functionality in
code editing. And what I am finding is : Indent with spaces does not
work
Yes, I have Edit > Preferences > Code Format set to 'Indent with 2
spaces.' But
pressing tab, ctrl-shift->, or ctrl-alt-], as well as auto indent all
result in
a tab character being inserted, never 2 spaces. This would be a show
stopper
for my evaluation as our coding standards demand always indenting with
spaces
and never with tabs. Ctrl-shift-tab doesn't outdent. It works in
HomeSite.
Even trying to be clever and using the HomeSite keyboard shortcuts does
not
result in ctrl-shift-tab in doing anything other than inserting another
tab
(and definitely not two spaces). I've tried mining the Knowledge Base but
have
not found anything like this issue. Thanks!




Reply With Quote
  #5  
Old   
bbicknell
 
Posts: n/a

Default Re: Indent code problems - 02-11-2005 , 03:15 PM



Quote:
When you're coding by hand or > involved with server-side code, you'll still
have to hit the spacebar twice. Bogus! I know it's not so simple (given that
HomeSite came out of Allaire), but it really is too bad that the code editing
engine in HomeSite couldn't be pulled out and placed into Dreamweaver. If I
find enough annoying nits like this that I might not be able to leave HS for
DW. Anyway, thanks for clearing that up. I can get on with my life now.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.