Difference between revisions of "Configuring Komodo Edit for Joomla Code Completion"

From Joomla! Documentation

(Created page with "{{inuse}} {{RightTOC}} == Introduction == This article provides instructions for setting up Komodo Edit and code completion for joomla. == Installation == 1.) Download and in...")
 
(Some markup and capitalization changes.)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{inuse}}
 
 
{{RightTOC}}
 
{{RightTOC}}
  
 
== Introduction ==
 
== Introduction ==
 
+
This article provides instructions for setting up Komodo Edit and code completion for Joomla.
This article provides instructions for setting up Komodo Edit and code completion for joomla.
 
  
 
== Installation ==
 
== Installation ==
 
+
1.) Download and install the latest version of Komodo Edit from the [https://www.activestate.com/products/komodo-edit/ ActiveState website].
1.) Download and install the latest version of Komodo Edit from here. http://www.activestate.com/komodo-edit
 
 
<br>
 
<br>
2.) Download the [http://www.joomla.org/ latest version]of Joomla.
+
2.) Download the [https://www.joomla.org/ latest version]of Joomla.
  
 
== Put Joomla Somewhere Safe ==
 
== Put Joomla Somewhere Safe ==
Line 16: Line 13:
  
 
== Adding Joomla Path To Komodo ==
 
== Adding Joomla Path To Komodo ==
Start the Komodo Edit software you just downloaded and installed and in the menu at the top you will see a menu option titled Edit. Go to Edit -> Preferences and a dialog will appear. Find Languages in the list on the left, expand it and you will see another list of languages, click PHP in the sublist.
+
Start the Komodo Edit software you just downloaded and installed and in the menu at the top you will see a menu option titled Edit. Go to {{rarr|Edit,Preferences}} (on an
<br>
+
Apple MacIntosh, it is {{rarr|Komodo,Preferences,Languages}}) and a dialog will appear. Find Languages in the list on the left, expand it and you will see a list of supported languages. Select PHP in the left column.
On the right of the screen under PHP Directories you can specify any directories that you want Komodo to use for autocomplete and calltips. Komodo will recursibely scan these directories for information.
+
 
<br>
+
On the right of the screen under PHP Directories you can specify directories that you want Komodo to use for autocomplete and calltips. Komodo will recursively scan these directories for information.
Press the green plus icon to add a new directory and point it at the Joomla package you unzipped and placed somewhere safe. Mine is in "C:\joomla\joomla2_5\Joomla_2.5.4-Stable-Full_Package" press okay and the editor will add the all the joomla code to it's database and you'll have code completion as soon as it's done scanning.
+
 
<br>
+
Press the green plus icon to add a new directory (on an Apple MacIntosh it is the + character) browse to the Joomla package you unzipped. Mine is in ''C:\joomla\joomla2_5\Joomla_2.5.4-Stable-Full_Package''. Select ''Okay'' and the editor will add the all the Joomla code to its database and you'll have code completion as soon as it's done scanning.
Now you're ready to start coding. Type "JFactory::" into your new php extension and Komodo will list all the methods available to JFactory.
 
  
 +
Now you're ready to start coding.
  
 +
To confirm that everything is working correctly do the following:
 +
 +
In Komodo open up a new file then save it as ''test.php''. This will allow Komodo to monitor input. Then type ''JFactory::'' into your new PHP file and Komodo will list all the methods available to JFactory.
  
 
[[Category:Development]]
 
[[Category:Development]]
 +
[[Category:IDE (Integrated development environment)]]

Latest revision as of 17:38, 10 September 2022

Introduction[edit]

This article provides instructions for setting up Komodo Edit and code completion for Joomla.

Installation[edit]

1.) Download and install the latest version of Komodo Edit from the ActiveState website.
2.) Download the latest versionof Joomla.

Put Joomla Somewhere Safe[edit]

Once you have downloaded the latest version of Joomla from the link above you'll want to put it somewhere on your drive where it won't get lost or deleted by accident. Unpack the Joomla file you just downloaded to this location.

Adding Joomla Path To Komodo[edit]

Start the Komodo Edit software you just downloaded and installed and in the menu at the top you will see a menu option titled Edit. Go to Edit  Preferences (on an Apple MacIntosh, it is Komodo  Preferences  Languages) and a dialog will appear. Find Languages in the list on the left, expand it and you will see a list of supported languages. Select PHP in the left column.

On the right of the screen under PHP Directories you can specify directories that you want Komodo to use for autocomplete and calltips. Komodo will recursively scan these directories for information.

Press the green plus icon to add a new directory (on an Apple MacIntosh it is the + character) browse to the Joomla package you unzipped. Mine is in C:\joomla\joomla2_5\Joomla_2.5.4-Stable-Full_Package. Select Okay and the editor will add the all the Joomla code to its database and you'll have code completion as soon as it's done scanning.

Now you're ready to start coding.

To confirm that everything is working correctly do the following:

In Komodo open up a new file then save it as test.php. This will allow Komodo to monitor input. Then type JFactory:: into your new PHP file and Komodo will list all the methods available to JFactory.