Answer the question
In order to leave comments, you need to log in
How to add code highlighting in Django?
Comrades, help, it is necessary that users (not from the admin panel) have the ability to add posts with code, the code needs to be highlighted, how to achieve this? If I don't turn off escaping ({{data|safe}}), then how can I make the code look "normal"?
Answer the question
In order to leave comments, you need to log in
Well https://github.com/odeoncg/django-pygments
$ pip install git+ https://github.com/odeoncg/django-pygments
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question