Gist.github proxy syntax output

There is no prolog syntax highlighting theme in gist.github .

So, which language should I choose for something really close to the prolog syntax?

And, by the way, what happened to the prologue? Is it really so unsuitable?

+4
source share
3 answers

The software https://gist.github.com/ uses Pyigs, a Python syntax syntax that includes support for Logtalk and therefore the ISO Prolog. There is already an open ticket to get not only Logtalk / Prolog, but also all the languages ​​supported by Pyigs, available for our gists:

http://support.github.com/discussions/gist/304-logtalk-support

Adding your comments to this ticket may help push the fix; -)

+6
source

What about Erlang? Since Erlang was inspired by Prolog, pretty much it seems like a reasonable coincidence, and basic highlighting seems to work well enough for Prolog's factual expressions, at least.

+2
source

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.

+1
source

All Articles