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.2.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for jsx_lexer-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cafe6bad6d68dab5dff011e5325f6bda570091239342b6bc30933b9646c83e9 |
|
MD5 | 478ded9a1c30bd369c7125ca88f2f4b4 |
|
BLAKE2b-256 | df5ef8eed28c1dacbcedef9bba26f5a581e7afa7f752c0f57e0280beee6dded0 |