Adding ModX custom code hinting to Dreamweaver CS5
One of the new features of Dreamweaver CS5 is its ability to provide PHP code hinting, and not just for default language constructs: it has the ability to introspect existing code and classed to provide easy access to code hints.
Dreamweaver supports several common CMSs out of the box, such as Wordpress and Jomla, but ModX isn't one of them. Luckily, it's very easy to get Dreamweaver to begin code hinting for the ModX API, which is hugely useful if you are writing plugins or snippets.
There is an interface to set up Site Specific Code Hinting (as the feature is called) - just right click on any file in the Site panel, and choose "Site-Specific Code Hints". You can then select which PHP files should be scanned for functions and classes which will be hinted. Whatever you select is written into a special file in the site root called "dw_php_codehinting.config". However, in this case rather than a very verbose description of adding files within this dialog, I'll simply give you the contents you need for this file.
How to add the code hints
1.
Developing a taste for eating for two
They say that the best ideas come out of solving a real problem, and when my wife was pregnant with our first child, one of the things we had to rapidly get used to was the complex rulebook about what pregnant women can and can't eat.
Too many foods, too many opinions
We'd picked up a few books, who each seemed to have bewilderingly long and sometimes contradictory lists of acceptable foods.
A month worth of tweets from fab feb
Due to being exceedingly busy, I didn't get round to doing a January roundup - but with such a cold miserable month, who wants to remember that? Onwards to February:
3 Feb: RT @rcktsheffield Finally put online the video of the logo perspective illusion we had at our old offices http://vimeo.com/9176942
10 Feb: #Tesco "gps for shopping" #iPhone app not only locates the nearest store, but tells you which aisle and shelf any product is on Read more...
Roundup of December tweets
Some words (if you can call them words) of wisdom (if you can call them wisdom) I tweeted during December.
1 Dec - My very childish review of our office toilet roll has gone live http://bit.ly/6fBjdG (double entendre? I gave them one, etc)
3 Dec - Still surpised seeing kids smoking outside school gates.
Predictions for 2010
Here's a few ill-informed predictions for the web/tech world in 2010. Well, some of them are not so much predictions, as things I'd like to see happen...
- The rumours already suggest there's going to be a new iPhone, and an Apple Tablet (let's call it the iTablet for now) launched in 2010, the former having a 5MP camera, and the latter running iPhone OS and apps.