Hi I am using the lstlisting package to format my Prolog code within my tex file.
In Prolog all variables begin with an uppercase letter.
I would like to emphasize them.
Is there a way to for example add all uppercase letters to the keyword list or adjusting their style. I imagine there is something like this:
That made everything except for strings bold.
The solution should also only apply to the actual programming language, s.t. uppercase words within strings and comments are not changed.
In the following example FoundClass and Message would be emphasized, but Find and Found not since they are either within a comment or a string.
somerule(Message,FoundClass) :- %Find property look_for_class_with_property(FoundClass), atomic_list_concat(['Found class which fulfills property:' ,FoundClass],Message).
Thanks for your help.