heybourn/headwind

Support for PHP files

MarkusHeinisch opened this issue · 1 comments

Currently the plugin supports only html files, right? Can you support php-files (used for wordpress theme template development) too?

Thanks

You're probably able to solve this by adding a classRegex option to the settings. I did this for .njk files and just inserted the same regex as is used for html files:

  "headwind.classRegex": {
    "njk": "\\bclass\\s*=\\s*[\\\"\\']([_a-zA-Z0-9\\s\\-\\:\\/]+)[\\\"\\']"
  }