[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 242
  • Last Modified:

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...
0
Severisth
Asked:
Severisth
1 Solution
 
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
 
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
New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

 
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
 
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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now