Highlighted

Formatting code question

New Here ,
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.

Adobe Community Professional
Correct answer by Paul-M | Adobe Community Professional

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.

TOPICS
Learn Dreamweaver

Views

364

Likes

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

Formatting code question

New Here ,
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.

Adobe Community Professional
Correct answer by Paul-M | Adobe Community Professional

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.

TOPICS
Learn Dreamweaver

Views

365

Likes

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
Nov 12, 2018 0
Adobe Community Professional ,
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, ACP
Alt-Web Design & Publishing

Likes

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
Reply
Loading...
Nov 12, 2018 0
New Here ,
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

Likes

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
Reply
Loading...
Nov 13, 2018 0
Adobe Community Professional ,
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, ACP
Alt-Web Design & Publishing

Likes

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
Reply
Loading...
Nov 13, 2018 0
New Here ,
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

Likes

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
Reply
Loading...
Nov 14, 2018 0
Adobe Community Professional ,
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, ACP

Likes

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
Reply
Loading...
Nov 14, 2018 0
New Here ,
Nov 14, 2018

Copy link to clipboard

Copied

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.

Likes

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
Reply
Loading...
Nov 14, 2018 0