HighDots Forums  

Highlight One Line + Tab and backspace/Tab

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Highlight One Line + Tab and backspace/Tab in the Macromedia Dreamweaver forum.



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

Default Highlight One Line + Tab and backspace/Tab - 03-31-2009 , 09:22 AM






2 Things that I'm hoping either there's an alternate keystroke for or a setting
I can change because they're different than my old version of Dreamweaver .....
and any other program I've ever used.

Both of these are within Design mode.

When you have 1 line highlighted and hit tab, it doesn't indent the line, it
erases it. Works like normal when you have multiple lines highlighted but not
just 1.

When you're backspacing, it does it space by space instead of tab by tab even
though the spacing was done using tabs ..... not individual spaces. Most
programs remember if you indented using tabs versus the spacebar whereas
Dreamweaver CS4 does not seem to do this ...... which is rather annoying seeing
that I don't know many developers who indent their code with spaces as opposed
to tabs.

Thanks for any help.


Reply With Quote
  #2  
Old   
Randy Edmunds
 
Posts: n/a

Default Re: Highlight One Line + Tab and backspace/Tab - 03-31-2009 , 06:18 PM






Cavillac,

I've never tried indenting selected lines in Design mode using Tab
before. This is generally a Code View operation.

But I see that Design mode wraps the selection in <blockquote> tags.
Yuck! I don't think you want to do that.

The original selection is indented using the indent defined for HTML
source code formatting, which is 2 spaces by default. You can change
that in Preferences > Code Formatting

Did you really mean *design* (and not code) view?

HTH,
Randy



Quote:
2 Things that I'm hoping either there's an alternate keystroke for or a setting
I can change because they're different than my old version of Dreamweaver .....
and any other program I've ever used.

Both of these are within Design mode.

When you have 1 line highlighted and hit tab, it doesn't indent the line, it
erases it. Works like normal when you have multiple lines highlighted but not
just 1.

When you're backspacing, it does it space by space instead of tab by tab even
though the spacing was done using tabs ..... not individual spaces. Most
programs remember if you indented using tabs versus the spacebar whereas
Dreamweaver CS4 does not seem to do this ...... which is rather annoying seeing
that I don't know many developers who indent their code with spaces as opposed
to tabs.

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

Default Re: Highlight One Line + Tab and backspace/Tab - 04-01-2009 , 11:36 AM



hahaha.....

I did, in fact, mean Code View .... not Design.

Sorry.

Reply With Quote
  #4  
Old   
Randy Edmunds
 
Posts: n/a

Default Re: Highlight One Line + Tab and backspace/Tab - 04-01-2009 , 05:04 PM



CS4 works slightly differently than CS3 when indenting a single line.
CS3 allowed you to select only all non-whitespace characters on the
line, but in CS4 you need to select the entire line including the
trailing CRLF.

So, put the IP at the start of the line and press Shift+down-arrow, or
click in the line number field.

The type of character (space or tab) used for indenting is based on
where you are indenting:

For HTML, it depends on the "Indent with" setting at Preferences > Code
Format.

For CSS, it depends on the "Indent Properties with" setting at
Preferences > Code Format > CSS...

For Script, it always uses tabs.

HTH,
Randy


Quote:
I did, in fact, mean Code View .... not Design.

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.