GtkSourceView is a GNOME library that provides syntax highlighting for GNOME Builder and GNOME Text Editor.
-
Clone the
gtksourceview
repository:git clone https://github.com/dracula/gtksourceview.git
-
Move into the cloned repository:
cd ./gtksourceview
-
Create the directory
gtksourceview-5/styles
if it does not exist in$HOME/.local/share
:mkdir -p $HOME/.local/share/gtksourceview-5/styles
-
Finally, create a symbolic link from the local repository to GtkSourceView’s styles folder:
ln -s $PWD/dracula.xml $HOME/.local/share/gtksourceview-5/styles
-
Download the
gtksourceview
archive and extract it. -
Create the directory
gtksourceview-5/styles
if it does not exist in$HOME/.local/share
. -
Move the
dracula.xml
file from the extracted archive to GtkSourceView’s style folder$HOME/.local/share/gtksourceview-5/styles
- Navigate to
GNOME Builder -> Preferences -> Appearance
, orGNOME Text Editor -> Preferences -> Appearance
. - Select
Dracula
as the application theme.
If you do not see the Dracula
in the theme overview, make sure that you have activated dark style in the application or in GNOME Shell.