Skip to main content
BROnstott
Known Participant
Oct 3, 2020 3:38 PM UTC
Question

Apply Source Formatting not working

When I try to apply source formatting, nothing gets formatted. 

 

Is there any way for me to debug this - to figure you what in my code is causing it to fail?

    This topic is closed to new replies. Start a new post to keep the conversation going.

    13 replies

    Nancy OShea
    Community Expert
    Community Expert
    Oct 3, 2020 5:43 PM UTC

    What kind of file is it? 

    If it's HTML, use the built-in validation service.  Go to Window > Results > Validation.  Click on the white triangle to check your document.   Fix all reported errors.

     

     

    Translate
    Nancy O'Shea— Product User & Community Expert
    BROnstott
    BROnstottAuthor
    Known Participant
    Oct 3, 2020 8:02 PM UTC

    Nancy - It's a PHP file.  There are no errors or warnings reported by validation.  This is not caused by invalid HTML or PHP code. 

    Translate
    Nancy OShea
    Community Expert
    Community Expert
    Oct 3, 2020 8:32 PM UTC

    Which version of DW?

    Did you format PHP tag libraries before running Apply Source Formatting? 

     

    Translate
    Nancy O'Shea— Product User & Community Expert