Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Allow existing syntax highlighting definitions to be used for other file extensions

未关闭
#1,601 2 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
30/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
领域
desktop-dev

调研方向

从 issue 中描述的语言下拉菜单和现有语法高亮集成入手。跟踪受支持的语言和文件扩展名是如何选择的,然后确定自定义的扩展名到语言映射可以存储和应用在哪里;当提议的 + 对话框接受扩展名和语言,并随后将该高亮应用于匹配的文件时,即表示完成。

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

描述

Needs Design Priority: Wishlist
Problem

There are a number of requests for syntax highlighting of file formats not currently supported by Gtk.SourceView.
Such requests should properly be made upstream so all users can benefit. However, there is no guarantee that support will ensue in the near future.

As a fallback it may help some users to be able to set Code to use a sufficiently close syntax highlighting definition for a different file format (file extension).

Proposal

In the language dropdown have a button "+" that brings up a dialog to enter a file extension and a picklist of supported languages. Code would then henceforth apply the desired highlighting to that type of file.

Prior Art (Optional)

No response

主要语言
Vala
星标
521
派生
119
平均合并
1 天 7 小时
30 天内合并 PR
13

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

elementary/code 的其他 Issue

查看 elementary/code 的全部 Issue

相似的 Issue

更多 Desktop Dev Issue

把新 issue 发到你的邮箱

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