1

In PHPStorm 3.0, a PHP string like:

$sString = '<div><span class="someClass">test</span></div>';

has HTML Syntax / opening and closing brackets highlighting.

I would like to disable this behavior and display it as a string only.

Anyone figured out where I can change this?

1 Answer 1

8

Alt+Enter on the string, Un-inject Language:

un-inject

Sign up to request clarification or add additional context in comments.

1 Comment

If that particular option doesn't appear (because reasons, I couldn't find it), you can also disable it in Settings -> Editor -> Language Injections: uncheck php: "<html>"

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.