Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.
-
drVAli #1
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
-
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... -
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 -
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... -
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... -
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 ? -
Joris van Lier #2
Re: Dreamweaver codding help
"drVAli" <webforumsuser@macromedia.com> wrote in message
news:fbdaru$aba$1@forums.macromedia.com...Dreamweaver MX has similar functionality,> 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?
>
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
-
drVAli #3
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
-
Joris van Lier #4
Re: Dreamweaver codding help
"drVAli" <webforumsuser@macromedia.com> wrote in message
news:fbehlk$ihm$1@forums.macromedia.com...The function used by Balance Braces / Ctrl+' ;> 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.
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
-
Joris van Lier #5
Re: Dreamweaver codding help
"drVAli" <webforumsuser@macromedia.com> wrote in message
news:fbehlk$ihm$1@forums.macromedia.com...According to [url]http://livedocs.adobe.com/dreamweaver/8/apiref/18_cod81.htm[/url]> 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.
balance braces should already work with {},{} and ()
Joris van Lier Guest



Reply With Quote

