A JSX lexer for Pygments
Project description
A JSX lexer for Pygments
Installation
$ pip install jsx-lexer
Usage
To use within Sphinx, simply specify jsx for your code-block:
.. code-block:: jsx const BlogTitle = ({ children }) => ( <h3>{children}</h3> ); // class component class BlogPost extends React.Component { renderTitle(title) { return <BlogTitle>{title}</BlogTitle> }; render() { return ( <div className="blog-body"> {this.renderTitle(this.props.title)} <p>{this.props.body}</p> </div> ); } }
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jsx-lexer-0.0.3.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for jsx_lexer-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f9b472b1e13dd5ab51cc1745bf7d2d3611b6d7a46eebb9594dc6734a08289e1 |
|
MD5 | ef7f5b6771525903a4b1dfdacd354f9f |
|
BLAKE2b-256 | a93d84952301433d8a7d9513549d738d55372c58bb4e83798151e8228e25244e |