User forums > Using Code::Blocks

Howto: Setup Help Plugin with chm-files and $(keyword)

(1/2) > >>

raph:
Hi guys

Being able to get help about the keyword under the cursor with just one keystroke makes developing much more easilier. Since I just found out how to do this (under WinXP) for chm-Helpfiles I decided to write this little tutorial.

Here are the steps:

1.) Get helpfile.
eg. if you are using wxWidgets, get wxWidgets-2.8.0-CHM.zip from here.

2.) Get and install keyhh.exe
KeyHH allows you to open up a chm file and jump to a topic.
Get it here (original website) or here (non installer version).

3.) Setup Codeblocks
Open up Codeblocks, choose "Settings"->"Environment"->scroll down to "Help files".
click "Add" and type in a name for the helpfile.

click "OK", answer question

with "Yes", and choose your .chm file.
Now (back to the "Environment settings" dialog), change the input field showing the path of the helpfile as following:

--- Quote ---keyhh -#klink $(keyword) path_to_helpfile
--- End quote ---
Make sure, that "This line represents a full command to be executed" is checked and (if you want) "This is the default help file (shortcut: F1)":


Now you should be able to open up the helpfile, by rightclicking a keyword and choosing "Locate in" or (if you checked "This is the default help file (shortcut: F1)") by simply pressing F1:





Hopefully someone will find this usefull.
Happy coding

raph

jpaterso:
That's awesome! I wasn't aware of that feature. Thanks!

Joseph.

David Perfors:
why do you need the keyhh program?

raph:
because there is no other way to open up a chm file and jump directly to a chapter (here $(keyword))

David Perfors:
Strange, when I do the steps ypu describe (step on wxString and F1) I just get the page I want...

Navigation

[0] Message Index

[#] Next page

Go to full version