Some Geany Questions

Linux specific questions.
Post Reply
sancho3
Posts: 358
Joined: Sep 30, 2017 3:22

Some Geany Questions

Post by sancho3 »

1. In FBEdit we have context sensitive help by pressing F1 on a keyword. We don't have that in Geany. What do you guys do for access to the manual?

2. I can't seem to find a way to better colorize the file format. I use Document/set file types/programming/freebasic. It seems there are two possible formats. I don't like either and would like to edit the colors used. How is this done?

3. Why doesn't the "run" icon on the toolbar activate? It works but remains grayed out.
Marc Bonus
Posts: 3
Joined: Oct 08, 2017 14:39
Location: Berlin/Germany

Re: Some Geany Questions

Post by Marc Bonus »

Funny, just seen solution here: viewtopic.php?f=5&t=25610
lassar wrote:I did some googling, and found that, you can use geany with kchmviewer to get context help.

Go to Edit, Preferences, Tools, Context Action.

Set it to "kchmviewer --sindex %s /chm-path"

Go to Edit, Preferences, Keybindings, go to edit section, "Context Action", press "Change button", press F1 key.
Even better: Set it to "kchmviewer --stoc %s /chm-path" opens keyword-text directly.
For the key i have taken F2, because on F1 is Geany-help.

Works here on Kubuntu.
lizard
Posts: 440
Joined: Oct 17, 2017 11:35
Location: Germany

Re: Some Geany Questions

Post by lizard »

Marc Bonus wrote:Works here on Kubuntu.
Works here in Mint too. But you have to install kchmviewer.
Munair
Posts: 1286
Joined: Oct 19, 2017 15:00
Location: Netherlands
Contact:

Re: Some Geany Questions

Post by Munair »

Not being on Windows (chm) I have a bookmark in my browser pointing to a local copy of the documentation. Three clicks and I have the keyword. ;)
speedfixer
Posts: 606
Joined: Nov 28, 2012 1:27
Location: CA, USA moving to WA, USA
Contact:

Re: Some Geany Questions

Post by speedfixer »

I use Lubuntu on most of my systems.
I prefer geany: simple, lightweight, easy project management.
I also have a local copy of the docs, but the kchmviewer looks like a better answer.
There are themes for geany, a couple of them are pretty good.

https://github.com/codebrainz/geany-themes

and others. I use 'Bespin' at the moment, but others are good.
A few keywords are missing; easy to add to the filetypes.freebasic file.

The parser misses a few constructs, but minor, really.
Dinosaur
Posts: 1478
Joined: Jul 24, 2005 1:13
Location: Hervey Bay (.au)

Re: Some Geany Questions

Post by Dinosaur »

Hi All

What I like about it:
In the filetypes.freebasic
(has to be all lower case)
[keywords]
#FreeBasic Keywords

user1= my udt field names

user2= my function / sub names

Then I can set the colours so that they really stand out.
The only downside is that you can only have 2 users, I would have liked 4.

Regards
sancho3
Posts: 358
Joined: Sep 30, 2017 3:22

Re: Some Geany Questions

Post by sancho3 »

I'll have to try that out.
Dinosaur
Posts: 1478
Joined: Jul 24, 2005 1:13
Location: Hervey Bay (.au)

Re: Some Geany Questions

Post by Dinosaur »

Hi All

Just to shortcut the hassle I went through getting answers.
In filetypes.freebasic:
[styling]
word2=keyword_2
word3=keyword_3
word4=keyword_4
word5=keyword_5

[keywords]
# FreeBasic words, all items must be in one line
keywords=abs access acos alias etc

# user definable keywords udt fields in my case.
user1=stepnbr starttime msec cycletime etc

#user2=Functions & Subs in my case.
user2=win_startup get_newfont get_bigfont machineprocess timeshow updater etc

Now in
filetypes.common
[named_styles]

keyword=0x000000;;true;false
keyword_1=keyword
keyword_2=0xB0E0E6;;true;false
keyword_3=0x4169E1;;false;true
keyword_4=0x3CB371;;false;true

All you need to do now is edit the colours.

Hope this helps.

Regards
Post Reply