diffplug / diffplug/gitcasso

Allow toggling syntax highlighting on/off for the page from a right click on the textarea/similar

未关闭
#117 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
HTML
星标
58
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

Sometimes I want the syntax highlighting, sometimes I would prefer it to just remain untouched; and usually the times where I want to make that decision are somewhat arbitrary and in the moment. It would be nice if I didn't have to 'reach far' to be able to toggle this; even better if it's not via the extension icon in the app bar because I already have way too many pinned open, and I would rather this 'fade into the background' except when I explicitly need it.

There's an extension called Markdown Toggle, and it seems to only show in the right-click context menu when I am clicking on a textarea or similar; but not when I right-click on a random section of the page. This feels like a nice compromise.

Potentially for GitHub textarea's in particular, there might also be an option to add a 'toggle syntax highlighting' button to the 'markdown toolbar' too:

Image

贡献指南

打开贡献指南

调研方向

No files, tests, or implementation entry points are named. Start by tracing how the extension registers textarea syntax highlighting and browser context-menu actions, then determine how the toggle should affect GitHub textareas and how its enabled state can be verified from the page.

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

评估

技术栈
github, html
领域
frontend, web-dev
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

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