Adding ctp file extension to the PHP syntax highlighting
ClosedPublic

Authored by martonmiklos on Feb 16 2018, 9:27 PM.

Details

Summary

ctp extension is used by the CakePHP as an extension of their template files.
There is not any special with them they are plain HTML/PHP files just they have this ctp extension.
I think it would be useful to open these files with the proper highlighting.

Test Plan
  • Create a file with the following contents:
Hello world!<br>
<?php echo "PHP sys hello too"; ?>
  • Save as foo.ctp
  • Open with Kate
  • The highlighting should highlight the <?php and the ?> tags at least.

Diff Detail

Repository
R216 Syntax Highlighting
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
martonmiklos created this revision.Feb 16 2018, 9:27 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptFeb 16 2018, 9:27 PM
Restricted Application added a subscriber: Frameworks. · View Herald Transcript
martonmiklos requested review of this revision.Feb 16 2018, 9:27 PM
dhaumann accepted this revision.Feb 24 2018, 9:03 PM
dhaumann added a subscriber: dhaumann.

Sounds good to me.

This revision is now accepted and ready to land.Feb 24 2018, 9:03 PM
This revision was automatically updated to reflect the committed changes.