geditgtksourceview

Adding a gtksourceview custom language with no root access


I'm trying to add a new gtksourceview custom language for use with gedit, but I don't have root access nor sudo privileges to change the /usr/<...> directory.

Is there any alternative?

Our system administrator is reluctant to change /usr/<...>


Solution

  • I had overlooked the solution Language Definition v2.0 Reference :

    Custom user languages are usually placed in ~/.local/share/gtksourceview-4/language-specs/. Note: replace 4 with 2.0 or 3.0 in the path for GtkSourceView version 2 or version 3.