Skip to main content
davidmc86
Participant
May 23, 2018
Answered

[locked] Apply Source Formatting To Selection

  • May 23, 2018
  • 1 reply
  • 1943 views

Does "Apply Source Formatting To Selection" option work for anyone? I have never been anble to get theis to work, "Apply Source Formatting" works fine.

 

I'm "selecting" the code I want to format and then clicking "Apply Source Formatting To Selection" but nothing happens, am I doing something wrong?

 

Thanks

 

David

    This topic has been closed for replies.
    Correct answer BenPleysier

    I had to find the command first, it used to be under Commands.

    To answer your question, yes it does work.

    Select the code to be formatted and go to Edit > Code > Apply Source Formatting To Selection

    1 reply

    BenPleysier
    Community Expert
    Community Expert
    May 23, 2018

    Which version of Dreamweaver?

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    davidmc86
    davidmc86Author
    Participant
    May 23, 2018

    Most up to date version of Dreamweaver CC

    Jon Fritz
    Community Expert
    Community Expert
    May 23, 2018

    What file type are you working in (.html, .asp, .php, etc)?
    What parts of the code are selected (<body> tag and content, random html content, <head> css, etc)?
    Are there any html or css errors in your code (go to File > Validate > Validate Current Document (W3C) for a listing)

    For me, depending on what I select in the page, it...

    A. Works correctly (per my tag library settings)
    B. Won't show "Apply Source Formatting to Selection" as an option (grayed out)
    C. Ignores what I'm asking it to do, and format all code near the selection
    D. Won't do anything (on a page with major structural errors)