{ "info": { "author": "Mounir Messelmeni", "author_email": "messelmeni.mounir@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "============================\nWelcome to django-highlightjs\n============================\n\n.. image:: https://travis-ci.org/MounirMesselmeni/django-highlightjs.png?branch=master\n :target: https://travis-ci.org/MounirMesselmeni/django-highlightjs\n\n.. image:: https://coveralls.io/repos/MounirMesselmeni/django-highlightjs/badge.png?branch=master\n :target: https://coveralls.io/r/MounirMesselmeni/django-highlightjs?branch=master\n\n\n.. image:: https://pypip.in/version/django-highlightjs/badge.svg\n :target: https://pypi.python.org/pypi/django-highlightjs/\n :alt: Latest Version\n\n\nUse Highlight.js (https://highlightjs.org) in your Django templates, the Django way.\n\n\nInstallation\n------------\n\n1. Install using pip:\n\n ``pip install django-highlightjs``\n\n Alternatively, you can install download or clone this repo and call ``pip install -e .``.\n\n2. Add to INSTALLED_APPS in your ``settings.py``:\n\n ``'highlightjs',``\n\n3. In your templates, load the ``highlightjs`` library and use the ``highlightjs_*`` tags:\n\nSettings\n--------\n\nThe django-highlightjs has some pre-configured settings.\nThey can be modified by adding a dict variable called ``HIGHLIGHTJS`` in your ``settings.py`` and customizing the values you want.\nThe ``HIGHLIGHTJS`` dict variable is contains these settings and defaults:\n\n .. code:: Python\n\n HIGHLIGHTJS = {\n # The URL to the jQuery JavaScript file\n 'jquery_url': '//code.jquery.com/jquery.min.js',\n # The highlight.js base URL\n 'base_url': '//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js',\n # The complete URL to the highlight.js CSS file\n 'css_url': '//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/{0}.min.css',\n # Include jQuery with highlight.js JavaScript (affects django-highlightjs template tags)\n 'include_jquery': False,\n # The default used style.\n 'style': 'monokai_sublime',\n }\n\n\nUsage in your `settings.py`:\n .. code:: Python\n\n HIGHLIGHTJS = {\n 'style': 'github',\n }\n\nAll other styles available at https://github.com/isagalaev/highlight.js/tree/master/src/styles\n\n\nExample template\n----------------\n\n .. code:: Django\n\n {% load highlightjs %}\n \n \n \n \n \n {# Highlight Syntax using Highlightjs #}\n\n {% highlightjs_this code_to_highlight %}\n {% highlightjs_this code_to_highlight 'python' %}\n\n {% highlightjs_javascript jquery=1 %}\n \n \n\n\nRequirements\n------------\n\n- Python 2.7, 3.4, 3.5 or 3.6\n- Django >= 1.8\n\nContributions and pull requests for other Django and Python versions are welcome.\n\n\nBugs and requests\n-----------------\n\nIf you have found a bug or if you have a request for additional functionality, please use the issue tracker on GitHub.\n\nhttps://github.com/MounirMesselmeni/django-highlightjs/issues\n\n\nLicense\n-------\n\nYou can use this under MIT See `LICENSE\n`_ file for details.\n\n\nAuthor\n------\n\nMy name is Mounir Messelmeni, you can reach me at messelmeni.mounir@gmail.com .\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/MounirMesselmeni/django-highlightjs/", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "django-highlightjs", "package_url": "https://pypi.org/project/django-highlightjs/", "platform": "", "project_url": "https://pypi.org/project/django-highlightjs/", "project_urls": { "Homepage": "https://github.com/MounirMesselmeni/django-highlightjs/" }, "release_url": "https://pypi.org/project/django-highlightjs/0.2.4/", "requires_dist": null, "requires_python": "", "summary": "A Django app to easy integrate highlight.js syntax highlighter.", "version": "0.2.4" }, "last_serial": 3067806, "releases": { "0.2.2": [ { "comment_text": "", "digests": { "md5": "fd3c766c07d9005a0af58afb5e519b3a", "sha256": "695b79ac58fbb4a4bf61cccb79ccc9c974006686ef8806308f197cf146a59966" }, "downloads": -1, "filename": "django-highlightjs-0.2.2.tar.gz", "has_sig": false, "md5_digest": "fd3c766c07d9005a0af58afb5e519b3a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6488, "upload_time": "2014-11-07T21:07:24", "url": "https://files.pythonhosted.org/packages/5d/39/df6fb5bf0f97ed371f1c8a06514435bdb3b08b9f02b66e3d64d0743b5bf8/django-highlightjs-0.2.2.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "66acbc40816bf666da69b0311ba746f1", "sha256": "40160353410cd62d21d4bc0786cc24b4f9b20bd1e95fb8e4c449552ba3232303" }, "downloads": -1, "filename": "django_highlightjs-0.2.4-py3-none-any.whl", "has_sig": false, "md5_digest": "66acbc40816bf666da69b0311ba746f1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8510, "upload_time": "2017-08-02T18:10:54", "url": "https://files.pythonhosted.org/packages/50/0d/33724a2af5da4d733f3a8b43cd2da1690fa5eeee6d219ad96dff55adf96e/django_highlightjs-0.2.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "051e55c2b706b4d56d3673d24f393277", "sha256": "05149266e1dd681b7ebb3eb509bb91f76bd1f3bf946d95101e7a0a9bd47f7799" }, "downloads": -1, "filename": "django-highlightjs-0.2.4.tar.gz", "has_sig": false, "md5_digest": "051e55c2b706b4d56d3673d24f393277", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5600, "upload_time": "2017-08-02T18:10:55", "url": "https://files.pythonhosted.org/packages/b5/0a/88b367840fa8ccc3a393030925de513309e7c0606f1a9c7fa370cdabf93a/django-highlightjs-0.2.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "66acbc40816bf666da69b0311ba746f1", "sha256": "40160353410cd62d21d4bc0786cc24b4f9b20bd1e95fb8e4c449552ba3232303" }, "downloads": -1, "filename": "django_highlightjs-0.2.4-py3-none-any.whl", "has_sig": false, "md5_digest": "66acbc40816bf666da69b0311ba746f1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8510, "upload_time": "2017-08-02T18:10:54", "url": "https://files.pythonhosted.org/packages/50/0d/33724a2af5da4d733f3a8b43cd2da1690fa5eeee6d219ad96dff55adf96e/django_highlightjs-0.2.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "051e55c2b706b4d56d3673d24f393277", "sha256": "05149266e1dd681b7ebb3eb509bb91f76bd1f3bf946d95101e7a0a9bd47f7799" }, "downloads": -1, "filename": "django-highlightjs-0.2.4.tar.gz", "has_sig": false, "md5_digest": "051e55c2b706b4d56d3673d24f393277", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5600, "upload_time": "2017-08-02T18:10:55", "url": "https://files.pythonhosted.org/packages/b5/0a/88b367840fa8ccc3a393030925de513309e7c0606f1a9c7fa370cdabf93a/django-highlightjs-0.2.4.tar.gz" } ] }