Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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?

share|improve this question

2 Answers 2

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.

share|improve this answer
    
I thought they were generally identified by mime type? I never programmed Perl, are you saying that if this association could be changed it would mess up system programs that are written in Perl? –  NoBugs Dec 29 '12 at 3:01
    
@NoBugs it would for some file managers and programs. It won't mess with system level things like the bash shell, but you will have problems with Nautilus, for example. The mime type is not used by every program. –  RolandiXor Dec 29 '12 at 3:07

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.