1

I am running Adobe Brackets on a 2017 iMac (Retina - 27 inch) with macOS Monterey 12.2

I want to point the path to PHP inside of MAMP. What is the correct json format and code to do this in Bracket's brackets.json file?

I've seen this code for someone using XAMP on a PC:

"php": {
    "executablePath": "C:\\xampp\\php\\php.exe"
}

I tried this in my brackets.json file:

"php": {
    "executablePath": “/applications/MAMP/bin/php/php7.4.21/bin/“
}

but apparently that is not correct JSON formatting. I've tried using the double forward slashes to no avail.

It IS the correct path to the PHP 7.4.21 php executable file within my MAMP directory though.

This is what is currently in my brackets.json file:

{
    "brackets-eslint.gutterMarks": true,
    "brackets-eslint.useLocalESLint": false,
    "fonts.fontSize": "12px",
    "fonts.fontFamily": "'SourceCodePro-Medium', MS ゴシック, 'MS Gothic', monospace",
    "externalApplications": {
        "jpg": "Adobe Photoshop 2021",
        "jpeg": "Adobe Photoshop 2021",
        "png": "Adobe Photoshop 2021",
        "svg": "Brackets",
        "psd": "Adobe Photoshop 2021",
        "ai": "Adobe Photoshop 2021"
    }
   
}

Any suggestions?

Thanks.

Dennis

1
  • You seem to have used the wrong kind of quotes around your string in the JSON. Commented Oct 7, 2022 at 9:32

1 Answer 1

-1

had exactly the same problem and for me - running a MacBook Pro with M1 Processor and Monterey and MAMP - worked the following:

{
    "brackets-eslint.gutterMarks": true,
    "brackets-eslint.useLocalESLint": false,
    "fonts.fontSize": "12px",
    "fonts.fontFamily": "'SourceCodePro-Medium', MS ゴシック, 'MS Gothic', monospace",
    "linting.collapsed": true,
    "externalApplications": {
        "jpg": "Preview",
        "jpeg": "Preview",
        "png": "Preview",
        "svg": "inkscape",
        "psd": "gimp"
    },
    "php": {
        "executablePath": "/Applications/MAMP/bin/php/php7.4.21/bin/php"
    }
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.