diff --git a/gedit/install.sh b/gedit/install-gtk3.sh old mode 100755 new mode 100644 similarity index 100% rename from gedit/install.sh rename to gedit/install-gtk3.sh diff --git a/gedit/install-gtk4.sh b/gedit/install-gtk4.sh new file mode 100644 index 0000000..2a2bc35 --- /dev/null +++ b/gedit/install-gtk4.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +sudo cp ldpl.lang /usr/share/gtksourceview-4/language-specs/ diff --git a/gedit/readme b/gedit/readme index 13650ed..370cf4f 100644 --- a/gedit/readme +++ b/gedit/readme @@ -2,14 +2,19 @@ | LDPL Syntax Highlighting for Gedit / Pluma / Etc. | +---------------------------------------------------+ +This folder contains installation scripts for both GTK3 and GTK4. The install-gtk3.sh +script will work for editors that use GTK3 and install-gtk4.sh will for those that use +GTK4. + [Installing] To install LDPL syntax highlighting for the gedit / pluma / etc editors just -run the install.sh file found in the same folder as this README. +run the install-gtk*.sh file found in the same folder as this README. [Installing (by hand)] -1. Copy the file ldpl.lang to /usr/share/gtksourceview-3.0/language-specs/ +1. Copy the file ldpl.lang to /usr/share/gtksourceview-3.0/language-specs/ or + /usr/share/gtksourceview-4/language-specs/ based on your editor 2. Restart Gedit / Pluma / Etc. [Uninstalling] -Delete /usr/share/gtksourceview-3.0/language-specs/ldpl.lang +Delete /usr/share/gtksourceview-3.0/language-specs/ldpl.lang or /usr/share/gtksourceview-4/language-specs/ldpl.lang