Feature Request: Scripting hooks for adding language support and stylsheets to code highlighting.
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 22/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- cpp
- Área
- desktop, developer-experience
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- C++
- Estrellas
- 5.9k
- Forks
- 499
- Merge medio
- 4 h 4 min
- PR fusionados (30 d)
- 3
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de pbek/QOwnNotes
-
Type: Upstream-problem
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Type: Support
Dificultad 5/5 Más de una semana Aptitud para principiantes 42/100
-
Effort: Very high Type: Feature Type: Upstream-problem
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
-
Type: Feature
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
-
Severity: Low Type: Upstream-problem
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
Todos los issues de pbek/QOwnNotes
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
harfbuzz/harfbuzz#6966 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
sirius-db/sirius#2807 · 2 reacciones ·
Los mantenedores suelen responder en 2 días
-
CS 1.9.1 and probably 2.0.0 convert black triangles to white at runtime, regarless of PBR configs.Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
community-shaders/skyrim-community-shaders#3325 ·
Los mantenedores suelen responder en 1 día
-
triage:to-check
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día