I would even dare to go with plain text (without highlighting), since the Prolog syntax is so simple that it is hard to imagine how useful it is to have colored numbers or operators; itβs possible by highlighting the built-in names, so that you donβt have to wander around the code in a possibly long and barely structured Prolog script looking for an implementation of a specific predicate, but this will not be well served by the other language syntax highlighting algorithm.
I would not say that Prolog is unusable, just not very common. GitHub also interprets .pl files as Perl, so the page does not mention Prolog. StackOverflow itself does not highlight the Prolog source code, however I find that reading the Prolog prologs posted in questions and answers is quite simple.
source share