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

Re-write Code For Better Legibility

Engaged ,
Dec 31, 2016 Dec 31, 2016

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?


It's only an island if you look at it from the water.
419
Translate
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 , Dec 31, 2016 Dec 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 .

CC-applySourceFormatting.jpg

Nancy

Translate
Community Expert ,
Dec 31, 2016 Dec 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 .

CC-applySourceFormatting.jpg

Nancy

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
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
Engaged ,
Dec 31, 2016 Dec 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.
Translate
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 ,
Dec 31, 2016 Dec 31, 2016
LATEST

Glad it worked out for you.

Happy New Year!

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
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