I'm using Listings package to insert python and javascript code into my thesis. This package has a lot of languages but not Django Template.

Someone has yet defined that custom language, or there's another method to include it, as pretty as would be with listings?

  • The Ruby equivalent of Django template language is called Liquid. You could search for that, although "liquid latex" gives entirely useless results... – Thomas Feb 11 '12 at 15:08
  • If "Django template" is the language mentioned here, it looks very much like HTML (for which there exists a language=HTML style in listings). – Werner Feb 12 '12 at 16:07
  • @Werner It is the language mentioned in your link. However, even though it is mostly HTML it has variables, filter, tags, etc. I think he also wants these specific Django template syntax highlighted. – benregn Feb 13 '12 at 7:39

If you want to get more syntax highlighting than is provided by the HTML style of listings then you could do one of the following:

Your Answer

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

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