rearranged dreamweaver code fix

Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.

  1. #1

    Default rearranged dreamweaver code fix

    There is an annoying problem where Visual Studio rearranges Dreamweaver
    template markers (which are really just comments so VS should ignore them). I
    have bashed my head against the wall in the following application forum in the
    the article...
    [url]http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=263&[/url]
    threadid=963294 Now, I want to write an extension which fixes the problem.
    Can you extension writers tell me if this is possible. Randy from Macromedia
    thought it might be difficult to impossible in the Dreamweaver environment
    because DW doesn't allow you to rearrange template code (at least in the
    editing window). Is this code locked if one tried to rearrange it in the
    DW-DOM environment one uses to write extensions.? Anyone want to codevelop
    this? I can think about how to do all the string math to fix what studio
    rearranges, but will save my breath if DW prohibits this (in extension land).

    RichMcCrea Guest

  2. Similar Questions and Discussions

    1. Code folding extension for Dreamweaver?
      Hello, does anybody knows a code folding extension for Dreamweaver DW CS4? OK you can select some line and fold them but this is not a big help...
    2. Dreamweaver template code rearranged by Studio.NETvisual designer
      I have used Dreamweaver MX2004 to create a C# ASP.NET website. I used the template functionality to give me consistant page design. My problem is...
    3. Code Hints for ActionScript in Dreamweaver MX
      I have developing my AS in Flash MX IDE because it provides me code hints. However, I spend 90% of my in Dreamweaver MX but it doesn't provide me...
    4. where do u enter registration code 4 dreamweaver
      where do u enter registration code 4 dreamweaver like im confused if u could help id appriciate it thanx :)
    5. Dreamweaver MX not saving code properly
      Cheap and nasty solution: - Do a global search and replace :) MX is like a box of chocolates - Someone's usually eaten the good bits already!
  3. #2

    Default Re: rearranged dreamweaver code fix

    RichMcCrea wrote:
    > editing window). Is this code locked if one tried to rearrange it in the
    > DW-DOM environment one uses to write extensions.?
    It might be possbile to move the comment around, but not certain. There is a API call dreamweaver.editLockedRegions() that you pass in true that allows you to edit locked regions. Not certain if it'll allow you to move the comment code around though.

    You could also, make sure the file is closed dreamweaver.closeDocument() , and then read it in use DWfile.read(fileURL) manipulate the code, maybe using RegExp, resave the file using DWfile.write(fileURL, newHTML) then maybe reopen the file dreamweaver.openDocument() .

    HTH

    --
    Danilo Celic
    | Extending Knowledge Daily : [url]http://CommunityMX.com/[/url]
    | Team Macromedia for Dreamweaver : [url]http://macromedia.com/go/team/[/url]
    danilocelic *TMM* Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139