Possible to add syntax highlighting colour themes?

About writing shell scripts and making the most of your shell
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
BlackVeils

Possible to add syntax highlighting colour themes?

Post by BlackVeils »

if so, how reliable are they? and how can it be done? i use pluma or gedit, with tango theme, i'm thinking this might be more practicle for me:
Image

although i like blue comments. the theme is from pastebin.com

this is not about fun, i just need certain layouts for everything i do, as it makes it easier for my mind to process.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
xenopeek
Level 25
Level 25
Posts: 29507
Joined: Wed Jul 06, 2011 3:58 am

Re: Possible to add syntax highlighting colour themes?

Post by xenopeek »

You'll find styles in /usr/share/gtksourceview-2.0/styles (or /usr/share/gtksourceview-3.0/styles if you are using the newer Gedit version as available on Linux Mint; install instructions here http://forums.linuxmint.com/viewtopic.p ... 9#p1008739). You can copy one that best meets your needs to ~/.local/share/gtksourceview-2.0/styles/, rename it to something else, and edit it with a text editor like Gedit. File is human readable. After restarting Gedit it should list the style you created as an option in the selection menu.

There's a bunch of extra styles here (with preview screenshots): https://wiki.gnome.org/Projects/GtkSour ... yleSchemes. Perhaps somebody already created what you need.

Here is a reference for the style file format: https://developer.gnome.org/gtksourcevi ... rence.html
Image
BlackVeils

Re: Possible to add syntax highlighting colour themes?

Post by BlackVeils »

thanks, that was very informative.

this is what i decided on:
Image
Locked

Return to “Scripts & Bash”