{"id":15973705,"url":"https://github.com/c-bata/django-pygments-renderer","last_synced_at":"2025-04-04T16:21:21.284Z","repository":{"id":48856202,"uuid":"184981667","full_name":"c-bata/django-pygments-renderer","owner":"c-bata","description":"Provides functionality for syntax highlighting using Pygments.","archived":false,"fork":false,"pushed_at":"2021-07-08T12:51:59.000Z","size":80,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-10T22:57:55.112Z","etag":null,"topics":["django","pygments","syntax-highlight","template-tags"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/c-bata.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-05T05:04:34.000Z","updated_at":"2023-08-23T20:32:13.000Z","dependencies_parsed_at":"2022-09-03T15:10:48.191Z","dependency_job_id":null,"html_url":"https://github.com/c-bata/django-pygments-renderer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-bata%2Fdjango-pygments-renderer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-bata%2Fdjango-pygments-renderer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-bata%2Fdjango-pygments-renderer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-bata%2Fdjango-pygments-renderer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c-bata","download_url":"https://codeload.github.com/c-bata/django-pygments-renderer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247208404,"owners_count":20901570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","pygments","syntax-highlight","template-tags"],"created_at":"2024-10-07T21:06:32.642Z","updated_at":"2025-04-04T16:21:21.263Z","avatar_url":"https://github.com/c-bata.png","language":"Python","readme":"django-pygments-renderer\n========================\n\nProvides functionality for syntax highlighting using `Pygments \u003chttp://pygments.org/\u003e`_ .\n\n.. figure:: ./example.png\n\n\nInstallation\n------------\n\ndjango-pygments-renderer requires python 3.6 or later and Django 2.2 or later.\n\n.. code-block:: console\n\n   $ python3 -m pip install django-pygments-renderer\n\n\nhttps://pypi.org/project/django-pygments-renderer/\n\nUsage\n-----\n\n.. code-block:: python\n\n   INSTALLED_APPS += [\n       'pygments_renderer',\n   ]\n\n\n.. code-block:: html\n\n   {% load i18n %}\n   {% load pygmentize %}\n   \u003chtml\u003e\n   \u003chead\u003e\n       \u003ctitle\u003e{{ title }}\u003c/title\u003e\n       \u003cstyle\u003e{% pygments_css %}\u003c/style\u003e  \u003c!-- load css for pygments --\u003e\n   \u003c/head\u003e\n\n   \u003cbody\u003e\n      \u003cdiv class=\"container\"\u003e\n          \u003cdiv class=\"sourcecode\"\u003e\n              {{ code|pygmentize:\"python3\" }}  \u003c!-- highlighting --\u003e\n          \u003c/div\u003e\n      \u003c/div\u003e\n   \u003c/body\u003e\n   \u003c/html\u003e\n\n\nSimilar projects\n----------------\n\n* https://github.com/richardcornish/django-pygmentify\n* https://github.com/odeoncg/django-pygments\n* https://github.com/sniku/django-pygments\n\nDevelopment\n-----------\n\n* lint: ``tox -e flake8`` or ``flake8``\n* test: ``tox -e py39`` or ``DJANGO_SETTINGS_MODULE=test_settings python -m django test``\n\nLicense\n-------\n\nThis software is licensed under the MIT License (See `LICENSE \u003c./LICENSE\u003e`_ ).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-bata%2Fdjango-pygments-renderer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc-bata%2Fdjango-pygments-renderer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-bata%2Fdjango-pygments-renderer/lists"}