When analyzing a large project I had to use the bookmarks feature, and I realised that two simple functionalities doesn't exist.
The line bookmarked don't appear highlighted, just a simple arrow shows up in the left margin. It's difficult to locate the bookmarked line just by scrolling the page or trying to take a rapid view on the code. This force us to use the shortcuts on the keyboard, and complicates a bit more the analysis.
When we exit Code::Blocks, reopen it, and reopen the project, the bookmarked lines are gone.
Pardon me if these already exists, I didn't found they anywhere in the Settings > Editor: Global Settings, Syntax Highlighting and similars.
My requests are: highlight of bookmarked lines and persistence of bookmarked lines beyond the exit of Code::Blocks.
I think the BrowseTracker plugin saves the bookmarks in the layout file, so they get loaded with the project. To use the plugin: View->Browse Tracker->Set Bookmark
you can set the default ctrl+b short cut to this with
Settings->Editor->Keyboard shortcuts->....
The bookmarks of the plugins are even more difficult to read. You can set different styles with
Settings->Editor->Brows Tracker
this is not implemented at the moment. I don't know how difficult this is to implement...
Ok, i made a patch to add this functionality:
Note: The BrowsTracker config gui is made ith wxFormBuilder i didn't used the FormBuilder, but changed the autogenerated code. If i find time i will rework this dialog to use wxSmith...
Hi, thanks for reply.
I tried to configure the BrowseTracker but at the end it works the same way of native bookmark feature, the most obvious difference is the navigation through the bookmarked lines using the toolbar, and perhaps a bit more control.
For code analysis I believe that highlight of bookmarked lines, which you're working on, is still a important facilitator.
I don't know how these patches work. Could you explain or guide when you have time?
You have to compile codeblocks by yourself:
http://wiki.codeblocks.org/index.php/Category:Installing_Code::Blocks_from_source
After the build was successful you can apply the patch
https://encrypted.google.com/search?hl=de&q=applying%20patch
then you have to rebuild., and it should work...
Or you wait until one of the devs looks over it and eventually it will get applied and then you have to wait for a nightly build...
Last edit: bluehazzard 2016-11-17
Patch no longer applies after applying the patch in #436