Report a bug!

(DW 2018) Apply source formatting to the php pages, strange behaviour

When I try to apply the source formatting to the php pages, the code show indent and spaces not necessary.
Instead if I use the same process on a html page, the source code is formatted correctly.
Is a bug or Dreamweaver (Adobe) consider PHP code in a different way?

2 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Michele shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    4 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • Mark G. commented  ·   ·  Flag as inappropriate

        On the same subject...

        I don't think I'm doing something wrong. Using DW 18.1, build 10155, I have a ??.class.php file that contains code that contains no bug that I have yet found. This is a little bit of that which I wrote:
        //////
        public function getAndSendDeal( $inpDealId ) {
        //////
        Apply source formatting does this to it:
        //////////////////////
        public
        function getAndSendDeal( $inpDealId ) {
        ////////
        A second Apply source formatting does this to it:
        //////////////////////
        public

        function getAndSendDeal( $inpDealId ) {
        ////////
        OK, not a critical bug in DW, but is this impressive behaviour?

      • Michael Chang commented  ·   ·  Flag as inappropriate

        same problem here. especially forms get destroyed in php-pages when applying source formatting.
        within quoteation marks DW generates spaces...

      • Anonymous commented  ·   ·  Flag as inappropriate

        can we add some more details ? so in case, please will it be possible to take into account the following points:
        - having a setting per language (css, scss, javascript, html...)
        - having a setting per project (i.e some team works using tab, some others works using space...)
        - currently when a language (HTML) contains other (CSS, JS) that doesn't apply correctly to the embeded language
        - linking the lint, format and coloring will be a real plus

      Feedback and Knowledge Base