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 Aptana\My 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 Window\Preferences. 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!


“WordPress code templates for Aptana” received 68 comments! Add yours.

  1. izzat aziz February 1st, 2009

    thanks, i really useful for me lately, but most of the time i still using old skool notepad.. :D

  2. Elliot February 1st, 2009

    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.

  3. Andrew April 8th, 2009

    Awesome. Thanks for this! Major time saver!

  4. Elliot April 8th, 2009

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

  5. Gursesag April 13th, 2009

    Я в принципе, мало, что смыслю в этм посте, но постараюсь все таки понять.

  6. Woumefomnell April 14th, 2009

    Огромное вам человеческое спасибо, очень актуальная заметка.

  7. Michael Lajlev April 15th, 2009

    Thx, great…have been looking for this.

  8. Bitranny April 15th, 2009

    Спасибо. Просто спасибо, за красивые мысли вслух. В цитатник.

  9. shapseempids April 16th, 2009

    Скажите, а у вас есть RSS поток в этом блоге?

  10. Elliot April 16th, 2009

    to subscribe to the RSS click on the box at the top of the site =)
    I’m now Twitter so you can follow me there http://twitter.com/eliorivero

  11. Keyclercenny April 17th, 2009

    Хорошо пишете. Надеюсь, когда-нибудь увижу нечто подобное и на своем блоге…

  12. Aluspesupt April 18th, 2009

    Сенкс за инфу, почитал с интересом

  13. grinty April 20th, 2009

    Очень понравилось, даже не ожидала.

  14. mubavazy April 21st, 2009

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

  15. Aspepsuibous April 24th, 2009

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

  16. reltDete April 25th, 2009

    А у вас пара ошибок в тексте… тока не обижайтесь )

  17. Ulf April 29th, 2009

    This is incredibly useful to me – thanks a lot!

  18. Mowwaymn April 30th, 2009

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

  19. enessybupe May 1st, 2009

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

  20. Mosmoleror May 2nd, 2009

    Опутеть как интересно, во задвигаете. Класс!

  21. WorldOFMusic May 6th, 2009

    Отлиный пост. Особенно порадовала кульминация ;)

  22. foetty May 7th, 2009

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

  23. Babylya May 14th, 2009

    Хм,несогласен с предыдущими блоггерами
    ^..^ Bye

  24. your name, please June 22nd, 2009

    It is surprising but true. Your life is expensive. At least, at its auction it could sell for good money.

  25. your name, please June 22nd, 2009

    Thanks for all the answers. Actually learned a lot. This is only until the end and not разобрался that and from where.

  26. adrian June 24th, 2009

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

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

  27. Elliot June 25th, 2009

    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.

  28. your name, please July 10th, 2009

    The abundance of interesting articles on your website amazes me! The author – best of luck and new interesting posts.

  29. ZoiX July 17th, 2009

    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! :)

    [1]http://www.inkframe.com/jpg/1.jpg
    [2]http://www.inkframe.com/jpg/2.jpg

  30. your name, please July 19th, 2009

    The publication is very well-published, the webmaster to explain everything, is what to think.

  31. Ted Curran July 28th, 2009

    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.

  32. Ted Curran July 28th, 2009

    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?

  33. Elliot July 28th, 2009

    Ted, you can try XRefresh. Works on Firefox and IE6-7:
    The current address for it is
    xrefresh.binaryage.com

  34. your name, please August 9th, 2009

    It is nice to read your blog. It is my understanding of many topics.

  35. your name, please August 10th, 2009

    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.

  36. Appespaxy August 11th, 2009

    A chto dlya vas vash blog? Vi proffesional’niy blogger ili eto prosto dlya dushi?

  37. Maurice August 17th, 2009

    Thank you, thank you, thank you.

  38. Chad Warren August 19th, 2009

    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!

  39. codingcereal August 25th, 2009

    great post! love the design of your site

  40. Фильмы онлайн September 11th, 2009

    Смотреть фильмы онлайн

  41. raifofamouh September 13th, 2009

    Ку,админ!!!
    Мне очень понравился ваш http://www.ilovecolors.com.ar и я бы хотел обменятся постами. как с вами можно связатся?
    заранее спасибо .

  42. Ziegfried October 5th, 2009

    Такие тексты только в ЖЖ публиковать, а не здесь =(

  43. KarHurads November 14th, 2009

    Очень красиво, работа собственная?

  44. gudsto December 9th, 2009

    Thanks, very good!

  45. Binh December 10th, 2009

    Thank you so much mate! :)

  46. Elliot December 12th, 2009

    You’re welcome. Updating these templates it’s always a pending task.

  47. online January 3rd, 2010

    новый год уже вот-вот ))

  48. Glavniru January 8th, 2010

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

  49. unsatacketasy January 9th, 2010

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

  50. S January 21st, 2010

    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.

  51. Vladislav30 March 15th, 2010

    Японский театр

  52. Alexey March 23rd, 2010

    Спасибо. Хороший пост. Мне очень понравился :)

  53. pl March 29th, 2010

    Sex-

  54. Mauricio Dottavio April 14th, 2010

    DreamWeaver CS5 tiene soporte para WordPress, Joomla, Drupal … habrá que probarlo… (o no? :P )

  55. Elio April 14th, 2010

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

  56. Charles May 3rd, 2010

    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!

  57. Elio May 3rd, 2010

    To get these options, download the old, Aptana PHP plugin instead of using Aptana PDT for PHP development. You can find a tutorial about doing it.

  58. Charles May 3rd, 2010

    Thanks Elio, I do not got to uninstall my current version of Aptana, the most installed version 1.5 and am using the php plugin Aptana, which really is much more powerful, and works much better, already imported the codes and is working very well with wordpress! Thanks for the tip! hugs

  59. Charles May 4th, 2010

    Hello again, lol, I wonder if you plan to put this project code template tags like the_title (), the_content, is_category, finally, tags used to control the content received from the posts, archives etc. .. !?

  60. Elio May 5th, 2010

    Indeed. It has always been my idea. There’s always something more interesting though :S As soon as I add something I will upload it here.

  61. Lightdesign June 14th, 2010

    Да, тут до меня побывало прличное количество читателей. ) блог отличный саветую читать))

  62. Silknet June 16th, 2010

    P thanks to your ideas , iТd adore to adhere to your weblog as usually as i can.possess a good day

  63. Michael Angelo April 24th, 2011

    Update for Aptana Studio 3, you can add a new Ruble for WordPress. Aptana also used your WordPress Template and converted into a Ruble. Thanks for this.

  64. Michael Angelo April 24th, 2011

    Here is the link on how to add a new Ruble on your Aptana Studio 3.

    https://aptanastudio.tenderapp.com/discussions/questions/969-can-aptana-3-do-code-assist-for-wordpress-projects

  65. Funcky Jack May 5th, 2011

    I´m using Aptana studio 3, i have installed the wordpress ruble. When i create a new php file i can see any wordpress auto-completion. I have tried commands->Wordpress->choosen command and i get an error: “Command ‘my choosen command’ is not defined.

  66. Sam MIller October 22nd, 2011

    DO you have a tutorial on how to set up aptana to best work with wordpress live locally?

  67. OneWorld November 11th, 2011

    Instructions how to set up wordpress code hints in Aptana 3: http://wordpress.stackexchange.com/questions/27063/aptana-wordpress-code-hinting

  68. Purispace August 23rd, 2012

    This is really awesome. thank you for this incredible informmation. These are really helpful to me.

Leave a comment