php - How to validate INI-File format in Eclipse

685

I want to validate the format (syntax check) of an INI file with Eclipse. I'd prefer the DLTK validator using a PHP script (just checking @parse_ini_file for the return value).

How can I setup this in Eclipse?

When I try to setup a script, it ignores my INI files, only checking *.php files on change.

584

Answer

Solution:

In the menu Window/Preferences, General/Content Types, Test/Configutation files, in the box "File associations:"

Check:*.ini (locked) Is present or not? If not add it in.

Then Add DLTK validator for PHP INI file.

People are also looking for solutions to the problem: PHP echo'ed out form with two fields, submit focus not changing to just hit enter on keyboard?

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.