Skip to main content
Chris Panny
Inspiring
December 31, 2016
Answered

Re-write Code For Better Legibility

  • December 31, 2016
  • 1 reply
  • 375 views

I'm a once-in-awhile user of Dreamweaver CC2017. I'm using it to make manual edits to a fixed-layout ePUB I made, but I'm finding the HTML could use some help in making it easier to read. I want to be able to have Dreamweaver insert a carriage return at the end of each closing tag.

Right now I see this:

<span id="_idTextSpan859" class="CharOverride-2" style="position:absolute;top:0px;left:6487.19px;">This-Manual-Needs </span><span id="_idTextSpan860" class="CharOverride-2" style="position:absolute;top:0px;left:7043.25px;">more </span>

I'd rather see this:

<span id="_idTextSpan859" class="CharOverride-2" style="position:absolute;top:0px;left:6487.19px;">TRX </span>

<span id="_idTextSpan860" class="CharOverride-2" style="position:absolute;top:0px;left:7043.25px;">is </span>

Can Dw re-write it so each opening tag starts on the next line?

This topic has been closed for replies.
Correct answer Nancy OShea

See screenshot.  Common (vertical) Toolbar.

Go to Edit Tag Libraries > Line spacing:  Before & After tags. 

After you define all your tag formatting, save it.  Then use Apply Source Formatting .

Nancy

1 reply

Nancy OShea
Community Expert
Nancy OSheaCommunity ExpertCorrect answer
Community Expert
December 31, 2016

See screenshot.  Common (vertical) Toolbar.

Go to Edit Tag Libraries > Line spacing:  Before & After tags. 

After you define all your tag formatting, save it.  Then use Apply Source Formatting .

Nancy

Nancy O'Shea— Product User & Community Expert
Chris Panny
Inspiring
December 31, 2016

Wow, that is so much nicer to read now! I applied it to my <span> tags, which is messier than the other tags in my doc. It's much easier to edit.

Thanks so much!!

It's only an island if you look at it from the water.
Nancy OShea
Community Expert
Community Expert
December 31, 2016

Glad it worked out for you.

Happy New Year!

Nancy O'Shea— Product User & Community Expert