elementary / elementary/code

Add GUI option to import .lang files

オープン
#780 コメント 2 件 リアクション 4 件 担当者 0 名 GitHub で見る
Needs Design Priority: Wishlist
主要言語
Vala
スター
521
フォーク
118
平均マージ
1日 8時間
マージ済み PR(30日)
14

説明

## Prerequisites
- [x] I have searched open and closed issues for duplicates.

## Feature

As far as I can tell, Code uses `gtk-sourceview` for syntax highlighting. Therefore, it should be easy to add new language definitions by simply placing the `.lang` and a mimetype file in the appropriate folders. However, Code does not offer a way to it through it's GUI. Instead, users have to manually install the language definition, or file a Github issue to get their favourite languages supported.

My solution is simple. Include an option for the user to import `.lang` files. It could be placed in the _Syntax Highlighting_ menu. If there is already a mimetype file installed that references the new language definition, then that mimetype would be used. Otherwise the user would be prompted to create a new mimetype.

### Alternatives

* Have the user manually install new language definitions.

* Have the user file an issue in this repo to get official support for his language of choice.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。