How can I make Enter insert a <br> instead of a <p>?

Is there a option or configuration file I can modify to make Enter insert a <br> instead of <p>?

Tired of hitting Shift+Enter...
LVL 1
SeveristhAsked:
Who is Participating?
 
haikleCommented:
In Dreamweaver MX
Select Edit > Keyboard Shortcuts.
From the "Current set:" drop-down, select "Macromedia Standard"
From the "Commands:" drop-down, select "Site window"
Highlight the item "Open" and click the minus "-" sign to remove this shortcut.

You should receive a message to duplicate the current set. Click OK.

From the "Commands:" drop-down, select "Menu commands".
Navigate to Insert >HTML >Special Characters >Line Break.
In the "Press key:" field, press the ENTER key and click CHANGE.

Not sure what consequences if any would result from this, but it seems to do what you want.

0
 
Ryan ChongCommented:
i'm afraid that {Shift} + {Enter} is the only way to insert a <br>...
0
 
SeveristhAuthor Commented:
I know that you can modify Shift+Enter to make it insert something other than a BR, (See: http://www.experts-exchange.com/Web/WebDevSoftware/DreamWeaver/Q_21106221.html?query=dreamweaver+shift+return&clearTAFilter=true )

So I'm hoping there is a way to modify Enter as well...
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
AndyCommented:
Based on what was posted in that thread you could try...

Open the file C:\Program Files\Macromedia\Dreamweaver MX\Configuration\Objects\Characters\Line Break.htm and copy everything below the </head> tag.

Then open C:\Program Files\Macromedia\Dreamweaver MX\Configuration\Objects\Text\P.htm and replace everything below the </head> tag with what you just copied.

Haven't tried it myself but it might be worth a go! :)
0
 
SeveristhAuthor Commented:
Awesome haikle! That worked like a charm, and there are no side effects. At any time, you just switch back to the default set (Macromedia Standard) and you're back to normal. I had to modify the instructions a little bit though:
-------------------------------------
Select Edit > Keyboard Shortcuts.
From the "Current set:" drop-down, select "Macromedia Standard" (it should already be selected)

From the "Commands:" drop-down, select "Site window"
Highlight the item "Open" and click the minus "-" sign.
You should receive a message to duplicate the current set. Click OK.

Click OK to name it "Macromedia Standard copy".
From the "Commands:" drop-down, select "Site window"
Highlight the item "Open" and click the minus "-" sign to remove this shortcut.

From the "Commands:" drop-down, select "Menu commands".
Navigate to Insert >HTML >Special Characters >Line Break.
In the "Press key:" field, press the ENTER key and click CHANGE.
-------------------------------------

Again, thanks! You rock.
0
 
SeveristhAuthor Commented:
Side effect!

Now, when you are in code view, and you press enter, you get a <br> and a new line instead of just a new line. Just a heads up for anyone who might be reading this...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.