Dreamweaver's Apply Source Formatting, how to insert a line break after every a tag?

76 3
2026-05-31

Dreamweaver’s “Apply Source Formatting” does not have a direct setting to automatically insert a line break after every <a > tag.

Instead, you control this behavior through the Tag Library Editor in Preferences, where you can define formatting rules for specific tags.

By default, Dreamweaver treats <a > as inline and won’t break lines unless you change its tag formatting preferences.



Step 1.

Open Tag Library Editor

Go to Edit > Preferences (Windows) or Dreamweaver > Preferences (Mac).

Select Tag Libraries from the left panel.

Step 2.

Find the <a > Tag

In the Tag Library Editor, locate the HTML tag set.

Step 3.

Adjust Formatting Rules

Each tag has options like:

Step 4.

Apply Source Formatting

Once saved, go back to your code.

Use Edit > Code > Apply Source Formatting (or toolbar shortcut).



Dreamweaver will now insert a line break after each closing </a > tag.

Line breaks before/after start tag

Line breaks before/after end tag

Set “Line break after end tag” for <a > to enabled.

Scroll to find the <a > tag.

已複製到剪貼簿
網址 QR Code (Dreamweaver's Apply Source Formatting, how to insert a line break after every a tag?)
本頁網址 QR Code

E-Mail:[email protected]

www.hkcards.com

2010 - 2026

hkcards 倉頡字典