Prolog files recognized as Perl

Prolog .pl files are shown as Perl files, both in files browser and in Geany/Gedit syntax-highlighting. Is there a way to let it recognized Prolog files as non Perl files?

2 Answers

Perl highlighting can be removed in Geany by choosing Tools -> Configuration Files -> filetype_extensions.conf from the menu bar. In the file that is opened, remove *.pl; from the Perl line, then choose Tools -> Reload Configuration to apply. This will also remove Perl highlighting from actual Perl files with that extension.

Geany doesn't have any highlighting for Prolog, though it is on the plugin wishlist.

It is not possible to do this because file types are identified by their file extension, and .pl is the extension for Perl, so changing what they mean would mess with your system.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like