Feature Request: Scripting hooks for adding language support and stylsheets to code highlighting.
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 22/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- cpp
- Ambito
- desktop, developer-experience
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- C++
- Stelle
- 5.9k
- Fork
- 499
- Merge medio
- 4h 4m
- PR unite (30g)
- 3
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di pbek/QOwnNotes
-
Type: Upstream-problem
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Type: Support
Difficoltà 5/5 Più di una settimana Idoneità per principianti 42/100
-
Effort: Very high Type: Feature Type: Upstream-problem
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
-
Type: Feature
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
-
Severity: Low Type: Upstream-problem
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
Tutte le issue di pbek/QOwnNotes
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
harfbuzz/harfbuzz#6966 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
sirius-db/sirius#2807 · 2 reazioni ·
I maintainer di solito rispondono entro 2 giorni
-
CS 1.9.1 and probably 2.0.0 convert black triangles to white at runtime, regarless of PBR configs.Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
community-shaders/skyrim-community-shaders#3325 ·
I maintainer di solito rispondono entro 1 giorno
-
triage:to-check
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno