stdlib-js / stdlib-js/stdlib

[RFC]: add commands for easy switching and previewing of syntax highlighting themes in the REPL

未关闭
#2,346 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
REPL RFC
主要语言
JavaScript
星标
6k
派生
1.3k
平均合并
1 天 3 小时
30 天内合并 PR
611

描述

### Description

This RFC proposes

- adding commands like `prevTheme` and `nextTheme` for easier switching between syntax highlighting themes
- adding a command like `themeSample` that prints out a syntactically highlighted sample code to demonstrate how the current theme looks like.

### Related Issues

Related discussions #2341

### Questions

No.

### Other

No.

### Checklist

- [X] I have read and understood the [Code of Conduct](https://github.com/stdlib-js/stdlib/blob/develop/CODE_OF_CONDUCT.md).
- [X] Searched for existing issues and pull requests.
- [X] The issue name begins with `RFC:`.

贡献指南

打开贡献指南

调研方向

Start by reviewing the REPL command-handling entry points and the syntax-highlighting theme implementation, then read related discussion #2341. Done means the REPL supports commands for cycling themes and displaying a highlighted sample of the current theme, with behavior agreed through the RFC discussion.

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
cli
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
活跃
描述清晰度
基本清楚
新手友好度
39/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。