I’ve been looking everywhere but I’m either blind or it’s really not there.
I’m looking for some option to add some sort of code template to Dreamweaver (CS5.5) which I can access with some shortcode via the code hinting menu. In Zend (PHP IDE) you could define such code blocks like
$query = "";
$sql = mysql_query($query);
$result = mysql_fetch_assoc($sql);
and let Zend put them into your code when typing “qry” and hitting enter.
Is there such an option in Adobe Dreamweaver CS5.5?
I’we been looking for the same and found a solution. Try to add to your dreamweaver instalation path
“\Adobe Dreamweaver CS5\configuration\CodeHints\php_codehints.xml”
into to the section
following code:
Now when you type $query to your code within PHP site, dreamweaver will offer you “mssql fetch //complete“
Analogically other code blocks. For example following:
I thing this solution works on Dreamweaver since CS versions, may be in MX too.
On the other site you can simply use SHIFT+F9 and define your own code block to paste.