create t2 different scripts to work with either gtk3 or gtk4

This commit is contained in:
John Paul Wohlscheid 2024-02-21 01:41:20 -05:00
parent 544c9bdb88
commit ce70d92c62
3 changed files with 10 additions and 3 deletions

0
gedit/install.sh → gedit/install-gtk3.sh Executable file → Normal file
View File

2
gedit/install-gtk4.sh Normal file
View File

@ -0,0 +1,2 @@
#!/usr/bin/env bash
sudo cp ldpl.lang /usr/share/gtksourceview-4/language-specs/

View File

@ -2,14 +2,19 @@
| LDPL Syntax Highlighting for Gedit / Pluma / Etc. | | 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] [Installing]
To install LDPL syntax highlighting for the gedit / pluma / etc editors just 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)] [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. 2. Restart Gedit / Pluma / Etc.
[Uninstalling] [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