PHP Storm marking class attributes in paragraphs

In one of my projects, phpstorm marks all paragraph class attributes as follows

I have tried a simple file with only one <p class = 'dog'>Dog</p> and the problem exists.

Mousing over the error brings up a  dialog saying something like "No data sources are configured to run this SQL and provide advanced code assistance

Only happens in one project so I'm thinking it is a setting somewhere.

Thanks,

Dave.

 

4 comments

Hi there,

Place caret in such problematic place and invoke Alt+Enter (or via light bulb icon). Show what menu do you see.

At the same time: post screenshot of "Settings/Preferences | Editor | Language Injections" -- I'm interested in any entries except "Built-in" in last column.

0

Tow items in the menu

  1. Configure Data Source
  2. Edit <Generic SQL> Gragment

Thanks

Dave

 

0

Delete 3rd rule from the bottom -- the one that named "xml:p/@class" and has "IDE" in last column.

You have accidentally created such rule .. and now SQL gets injected into class="" (everything inside it is treated as SQL fragment)

0

I figured that out after your previous message and thought I had responded to you. 

I have absolutely no idea how that rule was created but I'll know where to look if I have this problem in the future.

Thanks,

Dave

0

Please sign in to leave a comment.