WordPress code templates for Aptana

What’s you IDE of choice when it comes to web development? I use Aptana Studio which absolutely rocks when it comes to web development. By default, Aptana doesn’t have a PHP editor but you can install it after you install the default Aptana installation from the AptanaMy Aptana menu option. A page will open with some plugins you can add to Aptana and this is where you will find PHP support.

Aptana IDE

So, what about WordPress? does Aptana supports WordPress? well, Aptana has HTML, CSS, PHP autocompletion and it also support libraries like jQuery. To enable jQuery autocompletion open the References panel and under the Global References section check (if it’s not checked already) the jQuery 1.2 or 1.3 support; you will instantly get jQuery autocompletion. However, WordPress autocompletion is not yet supported so I’ve been writing a bunch of what Aptana calls Code Templates to assist me while coding a WordPress theme or plugin. It’s no rocket science, all you have to do is (having Aptana PHP installed of course, since WP is written on PHP) go to WindowPreferences. Then, on the tree, go to Aptana-Editors-PHP-Code Templates

Aptana Preferences

Like I said, I’ve started writing some templates, so you can download these WordPress code templates for Aptana 1.2 and import them to the Code Templates. The Code Templates are variable based so, for example, you can write (see the image above) the hook name to add an action to, and it will append the hook name to whatever function name you add (it’s the way I write action and filter functions). I’ve included the WordPress loop by Justin Tadlock, explained in great detail on its website, as an example of a large code template, and you can trigger it typing the_loop on the Aptana PHP editor. Other code templates like the ones triggered by _openfile  and _savefile (for opening and saving a file in a WordPress option page) make heavy use of variables.

I wonder why there’s still no IDE that supports WordPress syntax, given that it has become so widely spread on the last two years. We can only expect that 2009 will be the year where an IDE add WordPress syntax. Maybe Aptana is the one, it has been growing amazingly in the last year and I hope it will continue doing it.

I wonder, do you know of any IDE supporting WordPress? which is your IDE of choice? I will be adding more WordPress Code Templates for Aptana so stay tuned!

69 thoughts on “WordPress code templates for Aptana”

    1. Notepad could be fine, but IDEs have autocompletion, syntax highlighting, code templates ;), code snippets. Not to mention FTP features and synchronizing, code outline, syntax error detection, php live preview and much more. Aptana is even integrated to Firebug in Firefox for Javascript debugging. Give it a try, Aptana Studio community version is free and has all these features, there’s nothing to loose and everything to win.

    1. Ur welcome, glad you find it useful. I must add more code templates to it… if only days were 27 hours long…

  1. Очень интересно, но все в будущем хотелось бы еще побольше узнать об этом. Очень понравилась ваша статья!

  2. а вот вопросик можно? У вас время после поста указано. Это московское? Заранее спасибо!

  3. Жестокий этот мир нас подвергает смене
    Безвыходных скорбей, безжалостных мучений.
    Блажен, кто побыл в нём недолго и ушёл,
    А кто не приходил совсем, ещё блаженней.

  4. А Вы не задумывались о том, чтобы параллельно завести еще один блог, на смежную тему? У Вас неплохо получается

  5. Спасибо вам за сайт, очень полезный ресурс, мне очень нравится

  6. i know one , that supports wordpress, at least thats what they say..

    it’s codelobster. never had the chance to try it.

  7. Adrian, I tried Codelobster and I wasn’t satisfied with the results. First of all, the plugins that offer the WordPress/Drupal/Joomla/Smarty autocomplete are not free. I found CodeLobster to be quite closed, not to mention that it can’t be extended. In short, it doesn’t have the power of Aptana, and although Aptana doesn’t have WordPress autocomplete it’s easy to extend it, or create snippets and you get ftp, syncronize, references and many other things that we take for granted when using a full featured IDE. Personally, I will stick with Aptana. Maybe there are other options but Aptana works for me and that’s what really matters.

  8. Hi ELLIOT! I try to connect WordPress with Aptana and finally I can, but, in other way. When I import the XML that you publish, aptana show me an error, something about get_header()[1]. So, I install XAMPP and, in run configurations -> start URL, write localhost/mysite[2]. Is a wrong way, I think, because Aptana provide me a server and I use another, but, I can’t connect the Aptana Server with WordPress, any idea? Thank you! 🙂


  9. I have been looking for an IDE that supports WordPress. The closest thing I’ve found is a plugin for dreamweaver called ThemeDreamer.com It’s pretty ok if you don’t want to touch code at all, but I’ve decided that to master WP, I’m going to have to wade into the code waters. I’ve been switching around between Aptana, Expresso, and Smultron/Cyberduck.

  10. Hi ILC-
    Great posting. I’m still at the shaky stage of the CSS learning curve, and I really need to see the effects of my coding on the visual layout. Have you figured out a way to edit wordpress themes where you can actually SEE what you’re doing?

  11. I’m just dropping by to say that I very much liked seeing this post, it’s very clear and well written. Are you considering posting more about this? It appears like there is more fodder here for more posts.

  12. Thank you so much for these! I just discovered Aptana an hour ago and immediately began looking for WordPress integration. I agree, someone needs to compile ALL of the WP codex for Aptana. WP is the only CMS I design sites for!

  13. Моя история из жизни: мы как-то с мамой ехали в маршрутке,( мама спец по всем видам мяса на глаз определяет что это), на остановке залазит подвипывший мужик с куском свежака в одноразовом пакете. Едем. Маршрутка резко тормозит,мужик по инерции бежит вперед и пакет рвется ,оттуда выпадет свежак ,дальше мамины слова- ” Мужчина,у вас вымя выпало!” я медленно сползаю под сиденье , пассажиры ржут, мужик красный – выбегает на следующей остановке :)))

  14. Уважаемые читатели. С Рождеством христовым хочется вас поздравить. Админу сайта отдельное пожелание-побольше читателей на блоге, креативных интересных статей и всего всего всего 🙂

  15. ThemeDreamer and ThemeServer extensions to Dreamweaver. It provides code hints, realtime previews and a simple desktop web server just for that purpose -doesn’t interfere with LAMP when you really want to dig into code. But for the CSS graphic and web designer, the plugins are essential to the CS3/CS4 suite.

    1. Truth is that I don’t know about DW. However, I’m definitely sticking with Aptana no matter what 😀

  16. Hello, this is really cool initiative to create a code template for wordpress Aptana is fantastic, I’m not able to import more! I’m using Aptana Studio 2 and it has no choice in the way PHP “Aptana-Editors-PHP-Code Templates”, just the way “PHP-Editor-Template” and when I try to import in the latter simply nothing happens, it does not matter data, am I doing something wrong? I await an aid! 🙂 And.. sorry my english, I’m still learning, rss!

Leave a Reply