You are not logged in.
Pages: 1
Hi guys,
is there any method, besides opening a bug request, to add a mark-up syntax to Mousedpad?
I'd love adding support for GemText the Gemini mark-up which is pretty trivial itself!
Thanks!
Debian ~ Devuan & FreeBSD + XFCE = <3
Offline
Hi.
Mousepad uses a GNOME library for syntax highlighting. It's called GtkSourceView. Besides opening a new issue, you can write your own language definition. You can use one from many of the supported markup languages as a reference point. You can list them with the following command:
grep -rl 'section="Markup"' /usr/share/gtksourceview*/language-specs/
Last edited by KBar (2022-07-27 17:56:03)
Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please!
Offline
Thank you!
The #xfce-dev IRC Channel just redirect me here.
I hope that modifying an existing file can be enough.
I keep this thread to keep everyone posted!
Last edited by Danielsan (2022-07-27 19:48:24)
Debian ~ Devuan & FreeBSD + XFCE = <3
Offline
Here is a draft one that didn't get merged into gtksourceview. Perhaps you can try it out/use it as a base?
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Here is a draft one that didn't get merged into gtksourceview. Perhaps you can try it out/use it as a base?
Ooh! Cool!
This surely will help a lot!
Thanks!
Debian ~ Devuan & FreeBSD + XFCE = <3
Offline
Seems to work fine in gtksourceview4 - seems to have some problems in gtksourceview-3.0. To use it, paste the content of that merge request into ~/.local/share/gtksourceview-4/language-specs (create the directory if it doesn't exit) and restart mousepad. The entry will show up in the "Markup" section.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Indeed, doesn't not work in gtksourceview-3.0 and it is not trivial as I hoped, not at all...
Debian ~ Devuan & FreeBSD + XFCE = <3
Offline
Pages: 1
[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 542.55 KiB (Peak: 543.84 KiB) ]