Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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
    
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
add comment

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

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

1 Answer

up vote 3 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
add comment

Your Answer

 
discard

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.