Psionman
Psionman

Reputation: 3677

Change colours of syntax highlighting in Geany

I have two computers, each with Geany. One has the colour scheme that I like for Python, the other one has some sort of basic scheme with only keywords highlighted. I've looked and looked without any success at filetypes.python and filetypes.common. There's nothing in colorschemes apart from alt.conf.

Where do I find this?

Upvotes: 5

Views: 5564

Answers (2)

albar
albar

Reputation: 3100

In filetypes.python (can be opened from menu ToolsConfiguration FilesFiletype ConfigurationScripting Languages), section [styling]. Colors are coded in hexadecimal.

Upvotes: 0

SimpleBeat
SimpleBeat

Reputation: 755

Here's what you do for Geany versions 20 and 21.

  1. Find which version of Geany you have (menu HelpAbout).

  2. Visit this site:
    https://github.com/codebrainz/geany-themes

  3. Scroll to Introduction section and download a file for your Geany version:

  • geany-themes-0.20.zip - for version 20
  • geany-themes-0.21.1.zip - for version 21
  1. Unzip the downloaded file and navigate to its colorschemes directory. You will see a bunch of files with .conf extention. Copy all of them to ~/.config/geany/colorschemes/ (if you're on Ubuntu) or to C:\Users\YourUserName\AppData\Roaming\geany\colorschemes (if you're on Windows)

  2. Then copy all the files from unzipped filedefs directory into your ~/.config/geany/filedefs/ (Ubuntu), or into C:\Users\YourUserName\AppData\Roaming\geany\filedefs (Windows).

If you do not have such directories in your Geany installation you'd want to create them manually.

Launch Geany and enjoy the themes!

Upvotes: 2

Related Questions