WordPress Mode - WordPress syntax mode for Coda

This add-in for Coda adds a Syntax Mode for the WordPress Blog CMS.

Features:

  • Autocompletion for WordPress functions and template tags.
  • Adds “The Loop” to the Code Navigator.

Requirements:

  • Tested on Coda 1.6.4, should work on previous versions.

Installation:

  1. Download the tgz file and unpack.
  2. Move the “WordPress.mode” folder into the Modes folder for Coda. (~/Library/Application Support/Coda/Modes/)
  3. Open up your WordPress template file in Coda and use the mode by going to “Text -> Syntax Mode -> WordPress” in the toolbar.
  4. (Optional) If you want to set this Mode as the default handler for PHP files, go to the Editor pane in the Preferences window and add a Custom Syntax Mode that maps the .php extension to the WordPress mode.

  • Great!!! Thanks!
  • human3rror
    this looks awesome!
  • Jason
    I can not unpack the tgz file.

    Finder error:
    Unable to unarchive "WordPress.mode.tgz" into "Downloads".
    (Error 2 - No such file or directory)

    Terminal error:
    tar: This does not look like a tar archive
    tar: Skipping to next header
    tar: Error exit delayed from previous errors

    Do you have a md5 for the file so I can see if it is a download error?
  • MD5 Hash of the file is 3c0d2971fa870151e9859d31b8d8ed1e. Let me know if you figure out the problem, I can always make it available as a zip.
  • Alvaro
    I get the same error!
  • Alvaro
    I get the same error!
  • casey
    I have this error as well

    Unable to unarchive "WordPress.mode.tgz" into "Downloads".
    (Error 2 - No such file or directory)
  • I just changed the download to a zip file instead. MD5 hash of the new file is 956cae7cbfb4a918f35c559e12cd84df

    Give that a try and see how it works.
  • Jason
    Thanks Pradador. Works well now, but you forgot to edit the link in the right column from .tgz extension to .zip.

    I manually just changed the url to the file to .zip and I was able to download that way.
  • Damn WP-Cache... doesn't refresh when you update a sidebar widget. Thanks for the heads up.
  • Jason
    I have tried several times to add this .mode to Coda 1.6.7 and it isn't showing up in the Syntax Mode menu.

    I followed the instructions to a T, then tried a few different things (dragging it to Coda, double clicking it, etc).

    I can see the contents using the "Show Package Contents" in the right click contextual menu and verify the .mode files are not corrupt (and checked the md5).

    Any ideas?
  • Does the directory structure look like this?

    /Users/username/Library/Application Support/Coda/Modes/WordPress.mode/Contents/

    If it's not that, I don't know what could be causing the issue as I am using Coda 1.6.7 too and just dropping the mode in there like that works fine.
  • Jason
    I got it! When digging in via Terminal, I realized at some point I added on the extension .codaplugin. I don't remember when, but I removed it and it works now.

    Thanks for developing this Code Mode!
  • A-W-E-S-OM-E

    Thanks for putting this together, works really well and now when I instinctively try to allow my wp functions to autocomplete, it actually does. :-)
  • Thanks for the information and for the steps of installation. Nice blog.
  • darionovoa
    No download link is it broken?
  • Just switched the blog to another server and I'm having some issues with the PHP short tags getting echoed out. Should be fixed by tomorrow!
blog comments powered by Disqus