You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems I do get syntax highlighting for JSON, YAML and other files, so the feature is working, but just not for PHP files. This seems to be because it is highlighting in HTML mode, as if the file did not begin with <?php (even though it does) to switch it to PHP mode, which is verifiable by adding <Tags> in comments and observing they become highlighted.
git -v
git version 2.38.0.windows.1
delta -V
delta 0.14.0
The text was updated successfully, but these errors were encountered:
Bilge
changed the title
🐛 Syntax highlighting does not work for PHP files
🐛 Syntax highlighting does not work correctly for PHP files
Oct 17, 2022
Bilge
changed the title
🐛 Syntax highlighting does not work correctly for PHP files
🐛 PHP files are syntax highlighted as if they were HTML
Oct 17, 2022
Despite
delta --list-languages
showing the following output, it seems it does not apply highlighting to.php
files.It seems I do get syntax highlighting for JSON, YAML and other files, so the feature is working, but just not for PHP files. This seems to be because it is highlighting in HTML mode, as if the file did not begin with
<?php
(even though it does) to switch it to PHP mode, which is verifiable by adding<Tags>
in comments and observing they become highlighted.git -v
delta -V
The text was updated successfully, but these errors were encountered: