The syntect distinguishes between LANGUAGE NAME and LANGUAGE NAME Source as two completely different language syntax highlights, this PR change the strategy of how to detect what language syntax highlight should use.
If the content not contains <?php, that indicate this file is a PHP source segment, should use "PHP Source" rather than "PHP"
The syntect distinguishes between LANGUAGE NAME and LANGUAGE NAME Source as two completely different language syntax highlights, this PR change the strategy of how to detect what language syntax highlight should use.
If the content not contains
<?php
, that indicate this file is a PHP source segment, should use "PHP Source" rather than "PHP"