PHP 5.3 Syntax Highlighting

Hello,

I've been going through PhpStorm and while I love it, there's missing highlighting options for php 5 and 5.3 functionality, some examples would be method scopes (public, private, protected, static) and namespace management (use namespace, and defining namespaces).

Are there any plans to incorporate this in PhpStorm at some point?

Thanks and Best Regards,
Howard


[edit] On that note it doesn't seem to have any support for namespaces in completion either.

10 comments
Comment actions Permalink

The beta has namespace support. Though I have not played with it much. Hopefully 2.0 will be out soon.

0
Comment actions Permalink

Hi Howard,

1) Namespaces
PhpStorm v1 does not have any support for namespaces.
PhpStorm v2 EAP builds do have namespaces support (the work is still in progress though). You can try such build here: http://confluence.jetbrains.net/display/WI/Web+IDE+EAP

2) Highlighting
PhpStorm does not have highlighting per scopes (unlike NetBeans) and currently it is not on a list for future versions. You can check and fill your own feature request on Issue Tracker.

0
Comment actions Permalink

Thanks for the replies - I'm using 2.0 and I do see the namespace support now... I'm on the fence about PhpStorm in it's entirety unfortunately due to some strange performance mishaps I've been having (occasional lockups etc)

0
Comment actions Permalink

Hi Howard,

What's your OS, JDK version? How did you setup your project (is it local or remote via FTP), any VCS etc? Please provide some details.

0
Comment actions Permalink

OS: win7x64,
Setup: all files are local in a subdirectory of my home directory
jdk: 1.6.0_21

My computer isn't the best, core2duo 1.86 ghz/4GB RAM and I tend to do quite a few operations at once to the point every resource on my computer is near max - but that really hasn't been an issue when under another IDE such as netbeans so I'm not sure what it might be that's causing PhpStorm to act like this.

Another issue that's frustrating me is typed characters are showing up multiple times or out of order or a random combination of the two under PhpStorm (say i type $data, it's typed $atadata) and it keeps doing that, i get variations of things i type, $this becomes $ihts etc... I thought at first it was me making typos however after carefully monitoring my typing and watching the screen I saw the difference..

it's worth noting it's never misplaced the $ making me believe that something with autocomplete is causing the IDE to become temporarily overwhelmed and messing with it's buffer..

0
Comment actions Permalink

I have Windows 7 x32; 3GB RAM, Intel Core2 Duo E6400 (2.13GHz), KIS 2011 -- and I never experienced anything like that myself (but I'm not stressing my PC that much as you said you do). Possibly it is x64 specific issue...

Do you have any extra plugins installed? (I really doubt that this will help -- but try and disable those that are not used)

It would be great if you could record that behavior somehow (like, using Free version of TechSmith Jing) and report it to the Issue tracker: http://youtrack.jetbrains.net/issues/WI. The CPU snapshots taken during such times (if you can, of course -- there is a special button on toolbar) may help as well (they should be at least 30secs long and you can attach them to the ticket so the only JB team will see them).

0
Comment actions Permalink

I can see what I can do later - I have to head out shortly... I haven't added in any plugins but I can certainly clean up the default interface some. Thanks for the help so far, I appreciate it - The problem will be hard to record/find because of the typical stress on the computer as a baseline as one factor - but also because it happens fairly randomly.

0
Comment actions Permalink

How large are your files (lines)? I've had trouble with files over 4K lines.

0
Comment actions Permalink

500 or so at most, but I do work in projects with thousands of files

0
Comment actions Permalink

I'm getting good performance on the newest EAP if i scale back my overall CPU usage just a tiny bit, I've found a few bugs which I'll submit the issue tracker, and I've bought a license of PHPStorm, Thanks again :)

0

Please sign in to leave a comment.