• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Formatting code question

New Here ,
Nov 12, 2018 Nov 12, 2018

Copy link to clipboard

Copied

This is probably a simple question. Is it possible to set Dreamweaver to add a extra, indented line when I press enter between opening and closing html tags? Such as, say I am entering a table. I enter the following:

    <table></table>

Right now, if I press enter between the tags, I get the following:

    <table>

    </table>

What I would like to get is:

    <table>

        Indent to here

    </table>

I would like this to happen with any tags. Any help is appreciated.

Views

617

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 14, 2018 Nov 14, 2018

I think the short answer is the code formatting option isn't working 100% as it should in Dreamweaver

I tested at my end with Dreamweaver CC 2019 (on Windows 10) and get the same result as you. If you look on the uservoice website you'll see that there have been niggles and issues with Dreamweaver's code formatting option since CC2017 when Brackets was embedded into Dreamweaver as its new code editor.

My advice is report it to Adobe Support and/or post on the uservoice website.

Votes

Translate

Translate
Community Expert ,
Nov 12, 2018 Nov 12, 2018

Copy link to clipboard

Copied

Go to Edit Tag Library to set up your code formatting rules.  You can reach it from the Apply Source Formatting tool.  See screenshots.

CC-applySourceFormatting.jpg

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 13, 2018 Nov 13, 2018

Copy link to clipboard

Copied

Thanks for the reply, but I already had that set, and I am still not getting the extra line and indenting between the tag. When I close the opening tag, it creates the closing tag with the cursor between the tags, but when I press enter, it just moves the closing tag down to the next line without creating and indenting the next line. See the screenshots below.

table1.png

table2.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 13, 2018 Nov 13, 2018

Copy link to clipboard

Copied

Paste this code and hit  Apply Source Formatting.

<body>

<table>

<tr>

<td></td>

</tr>

</table>

</body>

After formatting, it should resemble this:

<body>

    <table>

        <tr>

            <td></td>

        </tr>

    </table>

</body>

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 14, 2018 Nov 14, 2018

Copy link to clipboard

Copied

Thanks for the reply. Sorry I didn't get back to you yesterday. I pasted the code in and clicked Apply Source Formatting, and I got the following. Also, if I hit enter between the td tags, it still just moves the closing tag to the next line, It doesn't add an extra, indented line.

html1.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 14, 2018 Nov 14, 2018

Copy link to clipboard

Copied

I think the short answer is the code formatting option isn't working 100% as it should in Dreamweaver

I tested at my end with Dreamweaver CC 2019 (on Windows 10) and get the same result as you. If you look on the uservoice website you'll see that there have been niggles and issues with Dreamweaver's code formatting option since CC2017 when Brackets was embedded into Dreamweaver as its new code editor.

My advice is report it to Adobe Support and/or post on the uservoice website.

Paul-M - Community Expert

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 14, 2018 Nov 14, 2018

Copy link to clipboard

Copied

LATEST

Thanks for the response. I was afraid something like this may be the problem. I reported a bug on the Uservoice site, and will update this if I hear anything.

Until then, I am going back to using Aptana. It may be a minor thing, but it slows me down if I have to go through formatting my code myself, and I have enough to do that I don't want to be slowed down.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines