fcurella / Jsx Lexer
Licence: mit
a JSX lexer for pygments
Stars: ✭ 26
Programming Languages
python
139335 projects - #7 most used programming language
Projects that are alternatives of or similar to Jsx Lexer
sphinx-jekyll-builder
sphinx builder that outputs jekyll compatible markdown files with frontmatter
Stars: ✭ 18 (-30.77%)
Mutual labels: docs, sphinx
X0
Document & develop React components without breaking a sweat
Stars: ✭ 1,706 (+6461.54%)
Mutual labels: docs, jsx
sphinx rtd dark mode
Adds a toggleable dark mode to the Read the Docs theme for Sphinx.
Stars: ✭ 29 (+11.54%)
Mutual labels: docs, sphinx
roll.urown.net
How to roll your own private self-hosted internet services.
Stars: ✭ 63 (+142.31%)
Mutual labels: docs, sphinx
Readthedocs.org
The source code that powers readthedocs.org
Stars: ✭ 6,802 (+26061.54%)
Mutual labels: docs, sphinx
React Express Fullstack
Full stack (mostly unopinionated) starter pack with React+Redux and Expressjs
Stars: ✭ 23 (-11.54%)
Mutual labels: sphinx
Javersphinxbundle
Symfony bundle which provides integration of Sphinx search engine with Symfony using SphinxQL
Stars: ✭ 18 (-30.77%)
Mutual labels: sphinx
Tslint React
📙 Lint rules related to React & JSX for TSLint.
Stars: ✭ 751 (+2788.46%)
Mutual labels: jsx
React Rails
Integrate React.js with Rails views and controllers, the asset pipeline, or webpacker.
Stars: ✭ 6,417 (+24580.77%)
Mutual labels: jsx
Meriyah
A 100% compliant, self-hosted javascript parser - https://meriyah.github.io/meriyah
Stars: ✭ 690 (+2553.85%)
Mutual labels: jsx
Api
姬长信API For Docker 一个基于多种编程语言开源免费不限制提供生活常用,出行服务,开发工具,金融服务,通讯服务和公益大数据的平台.
Stars: ✭ 743 (+2757.69%)
Mutual labels: docs
Htm
Hyperscript Tagged Markup: JSX alternative using standard tagged templates, with compiler support.
Stars: ✭ 7,299 (+27973.08%)
Mutual labels: jsx
Docconv
Converts PDF, DOC, DOCX, XML, HTML, RTF, etc to plain text
Stars: ✭ 735 (+2726.92%)
Mutual labels: docs
jsx-lexer
.. image:: https://travis-ci.org/fcurella/jsx-lexer.svg?branch=master :target: https://travis-ci.org/fcurella/jsx-lexer
.. image:: https://coveralls.io/repos/github/fcurella/jsx-lexer/badge.svg?branch=master :target: https://coveralls.io/github/fcurella/jsx-lexer?branch=master
A JSX lexer for Pygments
Installation
.. code-block:: sh
$ pip install jsx-lexer
Usage with Sphinx
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>
);
}
}
Usage with mkdocs
First, you need to create the CSS
for the highlighting:
.. code-block:: bash
$ pygmentize -S default -f html -a .codehilite > code/pygments.css
Then, add the following to your mkdocs.yml
:
.. code-block:: yaml
markdown_extensions: - codehilite extra_css: [pygments.css]
Now, you can use jsx
in your code blocks::
```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>
);
}
}
```
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].