PHPCSStandards / PHPCSExtra

A collection of code standards for use with PHP_CodeSniffer
GNU Lesser General Public License v3.0
91 stars 8 forks source link

Use PHP syntax highlighting for .inc files #223

Closed szepeviktor closed 1 year ago

szepeviktor commented 1 year ago

Just that.

Now they have a black-and-white look.

jrfnl commented 1 year ago

Interesting. I've never seen this setting before. Could you point me to the documentation of it ?

szepeviktor commented 1 year ago

Here it is, Juliette. https://github.com/github/linguist/blob/master/docs/overrides.md#summary

jrfnl commented 1 year ago

Here it is, Juliette. https://github.com/github/linguist/blob/master/docs/overrides.md#summary

Thanks Victor. I've had a look at that document and AFAICS it appears to be a GitHub specific feature, which is not officially supported. Correct ?

I'm also in two minds about the principle of it for PHPCS standard repos:

I'm going to have to think this over for a while....

szepeviktor commented 1 year ago

Seems like this helps, .inc files are full of colors 🎨 https://github.com/PHPCSStandards/PHPCSExtra/blob/c8ba5b37f9a214c4ee6db88b469cf1d0cee80054/.gitattributes#L33

jrfnl commented 1 year ago

Seems like this helps, .inc files are full of colors

Not sure what you mean by that ?

szepeviktor commented 1 year ago

.inc files look like this

image

jrfnl commented 1 year ago

.. which is okay, as long as it doesn't start annotating "parse errors" and such.