Repository Details
Shared by
HelloGitHub Rating
0 ratings
体积小、易于使用、支持各种编程语言的语法高亮插件
Past 7 days Received 1 stars ✨
Use arrow keys to explore dates, Home and End for the first and last date, Escape to dismiss.| Date | Star | Daily change |
|---|---|---|
| 周三 | 3,292 | — |
| 周四 | 3,292 | 0 |
| 周五 | 3,292 | 0 |
| 周六 | 3,292 | 0 |
| 周日 | 3,293 | +1 |
| 周一 | 3,293 | 0 |
| 周二 | 3,293 | 0 |
3.3k
Stars
No
Chinese
JavaScript
Language
No
Active
31
Contributors
69
Issues
No
Organization
None
Latest
448
Forks
Apache-2.0
License
体积小、易于使用、支持各种编程语言的语法高亮插件。该项目原理是通过正则过滤关键字,然后进行高亮。代码:
```javascript
// JS关键字判断
Rainbow.extend('javascript', [
/**
* matches $. or $(
*/
{
name: 'selector',
pattern: /\$(?=\.|\()/g
},
{
name: 'support',
pattern: /\b(window|document)\b/g
}
...
```
Included in:
Vol.35
Comments
Rating:
No comments yet