We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React docs 的是实现方式: https://github.com/Minwe/react/blob/master/docs/_plugins/highlight_lines.rb
使用方法:````html{6,10}`
```html{6,10} <!DOCTYPE html> <html> <head> <title>Hello React!</title> <script src="build/react.js"></script> <!-- No need for JSXTransformer! --> </head> <body> <div id="example"></div> <script src="build/helloworld.js"></script> </body> </html> ```javascript{4-10,13} // tutorial10.js var CommentList = React.createClass({ render: function() { var commentNodes = this.props.data.map(function (comment) { return ( <Comment author={comment.author}> {comment.text} </Comment> ); }); return ( <div className="commentList"> {commentNodes} </div> ); } });
The text was updated successfully, but these errors were encountered:
http://prismjs.com/plugins/line-highlight/
W3C 建议在代码上添加 language-xx 的 class: http://www.w3.org/html/wg/drafts/html/master/semantics.html#the-code-element
language-xx
Sorry, something went wrong.
No branches or pull requests
React docs 的是实现方式:
https://github.com/Minwe/react/blob/master/docs/_plugins/highlight_lines.rb
使用方法:````html{6,10}`
The text was updated successfully, but these errors were encountered: