Google Code Prettify automatically detects your source code and highlights it accordingly. It’s quite simple to setup. 1. Put the below style links in your head section. <link href=’http://cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.css’ rel=’stylesheet’ type=’text/css’/><link href=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css” rel=”stylesheet” integrity=”sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u” crossorigin=”anonymous”> 2. Now, place this script…
Category: syntax-highlighting
Code Syntax Highlighting in django with Pygments
Syntax Highlighting is a very much useful if you put code on your website. This can be easily achived with django-pygments. over 300 languages are supported. List of supported Languages: http://pygments.org/languages/ django-pygments is the implementation of the pygments syntax highlighter for…