Skip to main content
warpigs666
Inspiring
Sep 13, 2020 1:41 PM UTC
Answered

Any way to automatically add <br> tags ?

Hi. Is there any way to paste a block of text into Dreamweaver and then format it to automatically add <br> tags after line breaks or double line breaks?

Thanks!

    This topic is closed to new replies. Start a new post to keep the conversation going.
    Nancy OShea
    Nancy OSheaCorrect answer
    Community Expert
    Sep 13, 2020 7:05 PM UTC

    If you're pasting from MS Word, you don't want formatted text coming in because it adds unwanted junk code to your markup.  

     

    Use Ctrl + C to copy. 

    In DW, go to Edit > Paste Special.  See screenshot.

     

    Nancy O'Shea— Product User & Community Expert

    3 replies

    B i r n o u
    Legend
    Sep 19, 2020 6:39 AM UTC

    in wich window document are you pasting your text... view, or code ?

    depending on where you paste it, it can affect the cariage return or not ?

    Translate
    Nancy OShea
    Community Expert
    Nancy OSheaCommunity ExpertCorrect answer
    Community Expert
    Sep 13, 2020 7:05 PM UTC

    If you're pasting from MS Word, you don't want formatted text coming in because it adds unwanted junk code to your markup.  

     

    Use Ctrl + C to copy. 

    In DW, go to Edit > Paste Special.  See screenshot.

     

    Translate
    Nancy O'Shea— Product User & Community Expert
    Community Expert
    Sep 13, 2020 2:52 PM UTC

    If the text you are copying is formatted with a normal paragraph (enter) then it will be formatted that way in DW.  If it is formatted with a break (shift+enter) then it should come in that way.  If you want the text to come over differently, you may be better off using a CMS that can make this conversion as this is something that could be programmed into that type of setup, but not something DW can do on its own as far as I am aware of.

    Translate