{ "info": { "author": "Richard Bann", "author_email": "richard.bann@vertis.com", "bugtrack_url": null, "classifiers": [ "Environment :: Plugins", "Intended Audience :: Developers", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "pygments-lexer-babylon\n======================\n\nA javascript lexer for Pygments that uses the babylon parser\n\nWARNING!\n--------\n\n``Node.js`` must be installed to use this package. Set the environment\nvariable ``PYGMENTS_NODE_COMMAND`` to the command you use to run Node.\nThe default is ``nodejs``. If the following command works, you are most\nprobably OK:\n\n::\n\n nodejs -v\n\nWhy?\n----\n\nPygments can not properly highlight new and shiny ``javascript``\n(particulary ``jsx``). Until all these features are implemented in\nPygments, you can use this package as a fallback. Also, it is a good fun\nto experiment with various technologies :wink:.\n\nInstall\n-------\n\nNothing too much here, apart from the ``Node.js`` dependency:\n\n::\n\n pip install pygments-lexer-babylon\n\nThis will install ``Pygments`` for you (>=2.0), so if something depends\non an older version, ``virtualenv`` is recommended. (Or use\n``docker``...)\n\nUsage\n-----\n\nThe importable name of the package: ``pygmentslexerbabylon``. It\nprovides two lexers: ``BabylonLexer`` and ``BabylonHtmlLexer``. The\nlatter is needed because the built in ``HtmlLexer`` hard codes the usage\nof ``JavascriptLexer`` between ``