phpStorm Editor configuration for SQL statement string in PHP block

Answered

I'm trying to change the background color for the MySQL query strings. I don't like it how it is - see below. I've nearly tried nearly
everything in the File->Settings->Editor. I can change other stuff but just can't find the right parameter. I've tried everything
under PHP and SQL.

 

0
2 comments

Hi there,

What color schema did you use (Settings/Preferences | Editor | Colors & Fonts)? Always try to post screenshots using Default or Darcula -- they are "standard" so it's easier to guess what's happening here.

In any case: this might be Default color schema .. so this looks like Warning that comes from SQL/Database subsystem.

  • If you resolve what SQL parser does not like here then it should go away.
  • But the color can be changed at "Settings/Preferences | Editor | Colors & Fonts | General | Errors & Warnings | Warning"

 

1

The problem it didn't like was that the indenting was done with tabs instead of 4 spaces. I didn't pick up on the fact that the background highlighting was due to an error code.

 

Thanks.  

0

Please sign in to leave a comment.