Regarding text.html.php #5315
-
Some Scripting languagecodemirror_mime_type: application/x-httpd-php Mime type request Full-featured Programming languagecodemirror_mime_type: application/x-php or vica-versa of course. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
🤔 I'm not 100% sure what you're asking for with this request. It looks like you want to change the mime-type for PHP files. If this is correct, then this is completely outside of the control of Linguist. The All other uses of mime-types within Linguist come from the mini_mime gem: https://github.com/discourse/mini_mime If this is not what you are asking for, can you please provide more details about what improvement you're asking for. Please be as clear and thorough as possible. |
Beta Was this translation helpful? Give feedback.
-
Well my problem were only that there is no programming language sign in the github.com repo, when there exists some directories with files of this programming language. Probably I understood the languages.yml in Your project not in right way. nvm:) |
Beta Was this translation helpful? Give feedback.
-
Oh ok. That makes a bit more sense. If the repo is public, provide a link and we can have a look and see what's going on. As this is more of a topic for discussions, I'm going to move this over to the Classification section of the discussions. |
Beta Was this translation helpful? Give feedback.
I think I know which repo you're seeing this on: https://github.com/PolVilniusTech/coding.php
The reason you're not seeing any language information is because all your code is in a
samples
directory. Linguist considers the content of this directory as documentation:https://github.com/github/linguist/blob/79b3da822eac18d334e012e97442a654955a08a3/lib/linguist/documentation.yml#L32-L33
So you will need to implement a documentation override to tell Linguist to not consider the directory as documentation.