Cannot get PHP syntax highlighting in Aptana Pro

Discussion for Aptana Studio newbies about how to get Studio up and running.

Moderator: Aptana Staff

Cannot get PHP syntax highlighting in Aptana Pro

Postby matte » Sun Nov 18, 2007 10:05 pm

Installed the plug in. No syntax highlighting of php code. Just any HTML in the file. This isn't correct behavior, is it? What's the trick getting this workin?
Thanks.
User avatar
matte
 
Posts: 90
Joined: Thu Aug 10, 2006 12:28 pm

Postby mpetersen » Tue Nov 20, 2007 6:24 pm

Hi Matte,

Have you installed the PHP plug-in? (We moved PHP support to a separate plug-in.) You can download and install it from the Aptana Start page (Help > Aptana Start Page).

Hope this helps,
Michelle
mpetersen
 
Posts: 1800
Joined: Thu Jul 13, 2006 6:43 pm

Postby matte » Tue Nov 20, 2007 8:12 pm

michelle wrote:Hi Matte,

Have you installed the PHP plug-in? (We moved PHP support to a separate plug-in.) You can download and install it from the Aptana Start page (Help > Aptana Start Page).

Hope this helps,
Michelle



Michelle there is no help option on the start page, so I dont; follow you. Yes, as I said, the module is installed. I have the color settings in Preferences, but there is no defaulted highlighting going on of any code between <?php tags. Nada. Zip. Only the HTML gets any color at all.

The folding color mechanism is very awkward, btw, It needs a "collapse all" sections button. Overall, it's a nice idea, but very hard to navigate quickly.

Even so, why can't I get it to actually highlight my PHP code?
User avatar
matte
 
Posts: 90
Joined: Thu Aug 10, 2006 12:28 pm

Postby mpetersen » Tue Nov 20, 2007 10:01 pm

Hmmm...that doesn't sound right. Can you fill out a support request in ASAP?

http://support.aptana.com/issues/secure/Dashboard.jspa

If possible, attach a screen capture and/or code sample where you're not seeing the correct highlighting, and we'll investigate.

Thanks,
Michelle
mpetersen
 
Posts: 1800
Joined: Thu Jul 13, 2006 6:43 pm

Postby matte » Wed Nov 21, 2007 4:42 am

michelle wrote:Hmmm...that doesn't sound right. Can you fill out a support request in ASAP?
http://support.aptana.com/issues/secure/Dashboard.jspa
If possible, attach a screen capture and/or code sample where you're not seeing the correct highlighting, and we'll investigate.
Thanks,
Michelle


Michelle, this is turning into a comedy. Neither my community ID or Aptana Pro ID (was tester) is working at that support site. Do I need yet a THIRD ID for that?
User avatar
matte
 
Posts: 90
Joined: Thu Aug 10, 2006 12:28 pm

Postby mpetersen » Wed Nov 21, 2007 5:00 pm

Hi matte,

You'll need to register an ASAP account. We're hoping to have all of the Aptana ID's tied together into a "universal" ID at some point in the near future, but we haven't been able to implement that yet.

Thank you for your patience,
Michelle
mpetersen
 
Posts: 1800
Joined: Thu Jul 13, 2006 6:43 pm

PHP still not colorizing text

Postby matte » Tue Nov 27, 2007 11:01 pm

This is getting silly. The new update said the colorized is fixed. It's not. There is no change. All of my text is default gray, no matter how I set colors.

My OS is Ubuntu. Please don't send me back to the JIRA. Ingo had already noted the problem there, and I posted a screen shot.

What now?
User avatar
matte
 
Posts: 90
Joined: Thu Aug 10, 2006 12:28 pm

Postby mpetersen » Tue Nov 27, 2007 11:42 pm

Hi matte,

I found the ticket that you're asking about:

http://support.aptana.com/issues/browse/PHP-3

I'll see if I can get an update for its status.

Thank you for your patience.

--Michelle
mpetersen
 
Posts: 1800
Joined: Thu Jul 13, 2006 6:43 pm

Re: Cannot get PHP syntax highlighting in Aptana Pro

Postby wicketr » Wed Nov 28, 2007 5:07 pm

matte wrote:Installed the plug in. No syntax highlighting of php code. Just any HTML in the file. This isn't correct behavior, is it? What's the trick getting this workin?
Thanks.


It sounds like your not using the PHP editor when opening the file. What is the file extention? If it's not .php then it won't open it with the correct editor.

To test this, right-click on the file name you are wanting to edit, go to "Open With" and see what's listed. If Aptana PHP Editor is not there, then you'll have to add it (and make it the default if you want).

If you want other file types to use the PHP editor, then you need to set them up. For instance, if you want .html files to open with the PHP editor, go to Window -> Preferences -> General -> Editors -> File Associations. From there is should be self explanatory.
wicketr
 
Posts: 8
Joined: Tue Jul 17, 2007 3:20 pm

Re: Cannot get PHP syntax highlighting in Aptana Pro

Postby matte » Thu Dec 06, 2007 5:02 pm

I was using the editor.

In total frustration, I reinstalled aptana twice.. and the problem finally just went away. Some sort of build error, I suppose. I am mystified, but relieved that it's working. I was going nuts editing without highlighting. Thanks.
User avatar
matte
 
Posts: 90
Joined: Thu Aug 10, 2006 12:28 pm


Return to Getting Started with Studio