{ "info": { "author": "Sixty North AS", "author_email": "austin@sixty-north.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3 :: Only" ], "description": "================\nhighlight-ranges\n================\n\nHighlight ranges of code in `pygments `_ output.\n\nThis provides a filter that uses `spor `_\nanchors to determine which ranges of code to highlight in the pygmentized\noutput. You specify the ranges by creating anchors with metadata where the key\n\"highlight\" is `true`, e.g.:\n\n.. code-block:: json\n\n {\"highlight\": true}\n\nQuick start\n===========\n\nFirst, install `highlight-ranges`. See the \"Installation\" section for details.\n\nCreate a directory somewhere and create a file named ``example.py`` with the\nfollowing contents:\n\n.. code-block:: python\n\n def func(x):\n y = x * 4\n return y\n\nNow initialize a spor repository and add an anchor that will highlight the\nsecond line in the file::\n\n spor init\n spor add example.py 17 9 5\n\nFinally, use the ``highlight-ranges`` filter to generate the pygmentized HTML\nof the code::\n\n pygmentize -l python3 -f html -O full -F highlight-ranges:file=example.py example.py > example.html\n\nIf you open ``example.html`` in a browser, you should see the second line in the\ncode emphasized.\n\nInstallation\n============\n\nYou can install from PyPI with `pip:`::\n\n pip install highlight-ranges\n\nOr you can install from source::\n\n pip install .\n\nStyling\n=======\n\nThe filter marks highlighted ranges of code with the ``Generic.Emph`` type. From\na CSS point of view, this means you can style the highlights via the ``ge``\nclass.\n\nFilter options\n==============\n\nfile\n The file being pygmentized.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/sixty-north/highlight-ranges/", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "highlight-ranges", "package_url": "https://pypi.org/project/highlight-ranges/", "platform": "any", "project_url": "https://pypi.org/project/highlight-ranges/", "project_urls": { "Homepage": "http://github.com/sixty-north/highlight-ranges/" }, "release_url": "https://pypi.org/project/highlight-ranges/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "Highlighting ranges in pygments", "version": "1.0.0" }, "last_serial": 4605311, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "0a55582b4fd366cbffd9c3c992a9e6ad", "sha256": "0ac2a28ab9c3f001a218332bd75f77657138730b73e112794eec5c4366d224de" }, "downloads": -1, "filename": "highlight_ranges-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "0a55582b4fd366cbffd9c3c992a9e6ad", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5588, "upload_time": "2018-12-16T19:24:00", "url": "https://files.pythonhosted.org/packages/8d/09/6facec819590e50823b7d43549c3451d7ac3620a127a308b85a652f00963/highlight_ranges-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "726feb42730642d1b4bafc25065d5d8d", "sha256": "5e677fd1d50fba186dee4391b3dd5de5f2c59a49469773d8fcf6cf28cfd44b21" }, "downloads": -1, "filename": "highlight_ranges-1.0.0.tar.gz", "has_sig": false, "md5_digest": "726feb42730642d1b4bafc25065d5d8d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3467, "upload_time": "2018-12-16T19:23:50", "url": "https://files.pythonhosted.org/packages/34/ee/1882b1a027b559cb05b1f3b84499a6c3b24329c4ce3ecf466cfcdb66f1f8/highlight_ranges-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0a55582b4fd366cbffd9c3c992a9e6ad", "sha256": "0ac2a28ab9c3f001a218332bd75f77657138730b73e112794eec5c4366d224de" }, "downloads": -1, "filename": "highlight_ranges-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "0a55582b4fd366cbffd9c3c992a9e6ad", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5588, "upload_time": "2018-12-16T19:24:00", "url": "https://files.pythonhosted.org/packages/8d/09/6facec819590e50823b7d43549c3451d7ac3620a127a308b85a652f00963/highlight_ranges-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "726feb42730642d1b4bafc25065d5d8d", "sha256": "5e677fd1d50fba186dee4391b3dd5de5f2c59a49469773d8fcf6cf28cfd44b21" }, "downloads": -1, "filename": "highlight_ranges-1.0.0.tar.gz", "has_sig": false, "md5_digest": "726feb42730642d1b4bafc25065d5d8d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3467, "upload_time": "2018-12-16T19:23:50", "url": "https://files.pythonhosted.org/packages/34/ee/1882b1a027b559cb05b1f3b84499a6c3b24329c4ce3ecf466cfcdb66f1f8/highlight_ranges-1.0.0.tar.gz" } ] }