Skip navigation
must_be_user_error
Currently Being Moderated

Specifying search scope in dreamweaver.setUpComplexFind()

Feb 25, 2010 11:20 AM

The documentation is missing on this. For dreamweaver.setUpFind, searchWhat can be used - http://help.adobe.com/en_US/Dreamweaver/10.0_API_Ref/WS5b3ccc516d4fbf3 51e63e3d117f9e09bcf-7edd.html (see comment). However, no documentation exists as to how to specify the search scope in dreamweaver.setUpComplexFind() and dreamweaver.setUpComplexFindReplace().

 

Anybody know this parameter?

 
Replies
  • Currently Being Moderated
    Nov 7, 2011 12:02 PM   in reply to must_be_user_error

    The parameter is "searchmode" within the <find> tag in the setupComplexFindReplace() function

     

    options are (in order of pulldown CS5):

     

    <find searchmode="selectedText">

    <find searchmode="document">

    <find searchmode="C:\">

    <find searchmode="allOpenDocuments">

    <find searchmode="C:\">

    <find searchmode="selectedFiles">

    <find searchmode="site">

     

    As far as the related posts, just query user with dialogs or input boxes and parse together the

     

    dreamweaver.setupComplexFindReplace(<dwquery><queryparams matchcase="true" ignorewhitespace="false" useregexp="false" wholeword="false"  /><find searchmode="site"><qtext qname="stringToFind" qraw="true"></qtext></find><replace action="replaceText" param1="stringToReplace" param2=""/></dwquery>)

     

    NOTE: within js code, the Find and Replace function will execute based on the previous search command if searchmode is ommitted.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points