PHP syntax check on save option

Let us know what you would like to see in the next version of this software

Moderator: kfury77

Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
  • Do not create new topics for already requested features. Add your comments to the existing feature request topics instead;
  • Create separate topic for each feature suggestion. Do NOT post a number of non-related feature suggestions in a single topic;
  • Give your topic a meaningful title. Do NOT create topics with meaningless titles, such as "My Suggestion" or "My Problem".
Please note that we DO READ all suggestions, even if a reply is not posted. Thanks!
Post Reply
pdillinger
Posts: 2
Joined: Tue Oct 27, 2009 5:55 pm

PHP syntax check on save option

Post by pdillinger »

Greetings,

I've been wondering if we could setting on the PHP settings tab (or maybe per project) that forces a PHP syntax check on save for .php files. I've gotten in to the habit of running a PHP syntax check before saving source files, but I would really like it if when I clicked save it just ran. If the syntax check failed it could give me a warning dialog letting me know that syntax check failed and asking me if I'm sure I want to save. Otherwise it would save normally. Maybe just a single button like the "Save and upload to FTP" could be added that would do exactly the same thing. I think this would be a great feature and it seems very simple to implement.
xtom
Posts: 46
Joined: Thu Jun 10, 2010 5:19 pm
Location: Kildare, Ireland
Contact:

Re: PHP syntax check on save option

Post by xtom »

I think that would be a good option to have. I normally save without checking, then upload and then realise I've got a syntax error. This could be a real time saver. The check seems to run pretty fast too so I don't think it would slow down saving too much.
pdillinger
Posts: 2
Joined: Tue Oct 27, 2009 5:55 pm

Re: PHP syntax check on save option

Post by pdillinger »

xtom wrote:I think that would be a good option to have. I normally save without checking, then upload and then realise I've got a syntax error. This could be a real time saver. The check seems to run pretty fast too so I don't think it would slow down saving too much.
You're right, it is pretty fast. Even on files that are 3000+ lines long it doesn't take very long. On my laptop it seems to run about a second per 1000 lines of code. Well worth the extra (transparent) second when it eliminates the simple (and easy to miss) mistakes.
Post Reply