TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

migrated from stackoverflow.com Feb 12 '12 at 15:48

This question came from our site for professional and enthusiast programmers.

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
up vote 4 down vote accepted

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:

share|improve this answer

Your Answer


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.