Feature Request: Scripting hooks for adding language support and stylsheets to code highlighting.
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 22/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- cpp
調査の方向性
This is an open-ended request for new scripting hooks, not a localized fix. Start from the existing custom-stylesheet hook in the scripting docs and the highlighting path around src/entities/note.cpp (the linked line). Decide how language definitions (JSON/regex) and per-language stylesheets would plug into that pipeline. Done means documented, testable hooks that let a script add a language and its colors without core changes; expect design and maintainer buy-in first.
索引モデルが issue の本文から書いたものです。
説明
I understand that code highlighting is early in it's making right now, but here's a preliminary feature request.
In a similar vein to the hook for adding a custom stylesheet it would be a good idea to have a hooks for adding both:
-
Support for languages;
Perhaps a JSON file or similar, with explicitly typed keywords, types, 'other's, the start and end of a comment, etc.
Bonus points if it support regex so that people can basically copy the regex from highligh.js for the slightly more convoluted languages. -
Custom language highlighting stylsheets; Extra bonus points for being able to define which code the specific sheet applies to, so that you can have, for example, Java keywords highlighted in one set of colors, but C++ in another.
Would make your job a lot easier if people just added the languages they need themselves as there are billions of them (and I wanna add taggerscript which is always going to be way too low on the priority list). Perhaps you can then assimilate the scripts into the base program or so with an eventual update, if necessary.
- 主要言語
- C++
- スター
- 5.9k
- フォーク
- 499
- 平均マージ
- 4時間 4分
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pbek/QOwnNotes のほかの issue
-
Type: Upstream-problem
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
Type: Support
難易度 5/5 1週間以上 初心者へのやさしさ 42/100
-
Effort: Very high Type: Feature Type: Upstream-problem
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
Type: Feature
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
Severity: Low Type: Upstream-problem
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
harfbuzz/harfbuzz#6966 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
sirius-db/sirius#2807 · リアクション 2 件 ·
メンテナーはふだん 2 日以内に返信
-
CS 1.9.1 and probably 2.0.0 convert black triangles to white at runtime, regarless of PBR configs.オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
community-shaders/skyrim-community-shaders#3325 ·
メンテナーはふだん 1 日以内に返信
-
triage:to-check
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信