Dreamweaver codding help

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

  1. #1

    Default Dreamweaver codding help

    Hi

    I was wandering is there is a way or any extensions that could help me code
    php in dream weaver.

    More specifically, I was looking for some of the functionality Notepad++ has.
    Namely, it highlights opening/closing brackets when your selecting / move the
    carrot on another bracket.

    Example:

    If (bla) {
    // bla
    }_

    ( _ being the carrot)

    Is there a way to add this functionality to dreamweaver?

    drVAli Guest

  2. Similar Questions and Discussions

    1. PHP w/ Dreamweaver
      I just gained a client who's site was completely built off of Contributor using PHP scripting. When I went and downloaded their site into...
    2. New Dreamweaver soon ?
      Any rumours when we get new DW, I like to update my MX and I dont want to pay two update on same quarter ;) - J.S v.II
    3. Using PHP within Dreamweaver
      Hello. I am a first time poster to this forum who has been developing in Dreamweaver for the past three plus years. I have a client who has an...
    4. Will a webpage designed in Dreamweaver 4 be compatible with Dreamweaver MX?
      Will a web page designed with Dreamweaver 4 and Fireworks 4 be compatible with the MX versions of Dreamwever and Fireworks? We have one PC with...
    5. use FTP in Dreamweaver 4.0
      I can't use the FTP (inside the SITE) to connect the Remote Server after the relocation of the Server. anyone can help ?
  3. #2

    Default Re: Dreamweaver codding help

    "drVAli" <webforumsuser@macromedia.com> wrote in message
    news:fbdaru$aba$1@forums.macromedia.com...
    > Hi
    >
    > I was wandering is there is a way or any extensions that could help me
    > code
    > php in dream weaver.
    >
    > More specifically, I was looking for some of the functionality Notepad++
    > has.
    > Namely, it highlights opening/closing brackets when your selecting / move
    > the
    > carrot on another bracket.
    >
    > Example:
    >
    > If (bla) {
    > // bla
    > }_
    >
    > ( _ being the carrot)
    >
    > Is there a way to add this functionality to dreamweaver?
    >
    Dreamweaver MX has similar functionality,
    it's called "Balance Braces" and the keyboard-shortcut is Ctrl-', it will
    select all code between the braces.

    Auto highlighting matching braced can be done by an extension, but it will
    probably degrade performace, as every time the cursor moves, a matching
    brace has to be looked for , the Translated Source has to be updated an
    dreamweaver has to re-render the document.

    Joris

    Joris van Lier Guest

  4. #3

    Default Re: Dreamweaver codding help

    Hey

    Thanks for the reply.

    Ctrl+' is useful, but is there something similar for square brackets? (like
    for arrays)

    Also, I would like to build an extension to do this (highlight the brackets
    only)
    Do you know of any place I can get some information on this?
    preferably a piece of code that messes with the text in the code view, that I
    could modify.

    drVAli Guest

  5. #4

    Default Re: Dreamweaver codding help

    "drVAli" <webforumsuser@macromedia.com> wrote in message
    news:fbehlk$ihm$1@forums.macromedia.com...
    > Hey
    >
    > Thanks for the reply.
    >
    > Ctrl+' is useful, but is there something similar for square brackets?
    > (like
    > for arrays)
    >
    > Also, I would like to build an extension to do this (highlight the
    > brackets
    > only)
    > Do you know of any place I can get some information on this?
    > preferably a piece of code that messes with the text in the code view,
    > that I
    > could modify.
    The function used by Balance Braces / Ctrl+' ;
    dom.source.balanceBracesTextView(), seems to be defined in the C API, and
    thus isn't available for tinkering with the javascript.

    There is some API documentation about "Customizing Code view", but it
    doesn't mention any javascript functions that modify the code view
    [url]http://livedocs.adobe.com/en_US/Dreamweaver/9.0_Extending/dwr_customizing_code_cc_01.html[/url]

    Then there's the Translator API but it only seems to affect Design View,
    [url]http://livedocs.adobe.com/en_US/Dreamweaver/9.0_Extending/dwr_data_translators_dt_01.html[/url]

    Highlighting (instead of selecting) in code view, if at all possible would
    require a complex combination of Translation, ThirdParty tags, dynamically
    generated Code Coloring and frequent use of
    dreamweaver.reloadCodeColoring(), which would probably degrade dreamweavers
    performance. I think that's why the Dreamweaver engineers chose to implement
    is like this as a selection.

    If you want to implement it as a selection for angled braces then I
    recommend you have a look at the dwscripts.getBalancedSelection function,
    although it works with tags it'll give you the general idea...

    Joris


    Joris van Lier Guest

  6. #5

    Default Re: Dreamweaver codding help

    "drVAli" <webforumsuser@macromedia.com> wrote in message
    news:fbehlk$ihm$1@forums.macromedia.com...
    > Hey
    >
    > Thanks for the reply.
    >
    > Ctrl+' is useful, but is there something similar for square brackets?
    > (like
    > for arrays)
    >
    > Also, I would like to build an extension to do this (highlight the
    > brackets
    > only)
    > Do you know of any place I can get some information on this?
    > preferably a piece of code that messes with the text in the code view,
    > that I
    > could modify.
    According to [url]http://livedocs.adobe.com/dreamweaver/8/apiref/18_cod81.htm[/url]
    balance braces should already work with {},{} and ()



    Joris van Lier 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