IDE Tool "Jump to Marker"
- Michael Vogel
- Addict
- Posts: 2818
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
Re: IDE Tool "Jump to Marker"
Not sure if you're happy with the modifications but...
...it is possible now to jump to a marker without closing the window (set option parameter to 1xxxxx)
...changing the window width is possible (the height is controled by the parameter values xxxx0xx or xxxx1xx)
...it is possible now to jump to a marker without closing the window (set option parameter to 1xxxxx)
...changing the window width is possible (the height is controled by the parameter values xxxx0xx or xxxx1xx)
Re: IDE Tool "Jump to Marker"
I was busy with my own things. I recorded a video because I needed to record a few videos, and I also recorded your program to show it to you quickly.Michael Vogel wrote: Mon Sep 01, 2025 11:19 am Not sure if you're happy with the modifications but...
Why are you still using a direct path to your source code, when people have a different path to your source code and it won't work? I've provided you with constants that will give you the correct path to your source code, and it will automatically work. This way, people can immediately check your code without having to compile or add it as a tool. If someone checks it using F5 and likes it, they'll consider adding it to their own project. However, if the code doesn't work, it will be discarded.
- Michael Vogel
- Addict
- Posts: 2818
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
Re: IDE Tool "Jump to Marker"
Hi, thanks for your comments which are valuable for me - and you're right with your hints.
Anyhow the program is designed as a tool and works when compiled. Maybe you can call it a feature request to be integrated into the IDE (because it should be easier to get all marker positions without scanning the source code)
The debugging part (including the example file path, retrieving handles, etc.) is to play around with the source. BTW compiler path constants are not working perfectly when using a portable "installation".
Anyhow the program is designed as a tool and works when compiled. Maybe you can call it a feature request to be integrated into the IDE (because it should be easier to get all marker positions without scanning the source code)
The debugging part (including the example file path, retrieving handles, etc.) is to play around with the source. BTW compiler path constants are not working perfectly when using a portable "installation".
Re: IDE Tool "Jump to Marker"
AZJIO's contribution reminded me of some (old) code I wrote:
ComboBoxGadget inside EditorGadget as a tip.
Explanation: A selection list (similar to the autocomplete list) in an EditorGadget.
Sorry if this is off topic.
ComboBoxGadget inside EditorGadget as a tip.
Explanation: A selection list (similar to the autocomplete list) in an EditorGadget.
Sorry if this is off topic.
Just because it worked doesn't mean it works.
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
- Michael Vogel
- Addict
- Posts: 2818
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
Re: IDE Tool "Jump to Marker"
Axolotl, every tip is welcome and never off topic (anyhow I'd set a semicolon before the code SetGadgetFont(#GADGET_ComboBox, userfont) in your nice example)
Meanwhile I've added another function in the code above, because letting the tool scroll around (using the space key) made it difficult for me to find the line in the editor quickly. So now a red small box appears for half a second at the beginning of the chosen line...
Actual versions of my tools (IDE configuration screenshots and compiled programs):
Tool Marker: Configuration + Screenshot + Program (Win 64 PB6.21C)
Tool Search: Configuration + Screenshot + Program (Win 64 PB6.21C)
The uploaded version has additional features (F5:reload, F6:swap, Ctrl+Space:toggle marker) therefore the tool configuration has also changed:

Meanwhile I've added another function in the code above, because letting the tool scroll around (using the space key) made it difficult for me to find the line in the editor quickly. So now a red small box appears for half a second at the beginning of the chosen line...
Actual versions of my tools (IDE configuration screenshots and compiled programs):
Tool Marker: Configuration + Screenshot + Program (Win 64 PB6.21C)
Tool Search: Configuration + Screenshot + Program (Win 64 PB6.21C)
The uploaded version has additional features (F5:reload, F6:swap, Ctrl+Space:toggle marker) therefore the tool configuration has also changed:
Code: Select all
; Example for Tool Settings:
; --------------------------
; Command Line: Tool Marker.exe NO path (must be set by working directory to allow restarting)
; Arguments: "%FILE%" "%TEMPFILE" 110552 "Arial" the third parameter number configures all options*
; Working Dir.: %COMPILEFILE\..\..\Pure\Tools crude way to get 'home' directory for portable installation
; Name: &Jump to Marker... :)
; Event Trigger: Menu Or Shortcut should be 'or' (seems that 'Or' is a result of using the PB-IDE)
; Shortcut: Ctrl + J unused shortcut
; *) Options:
; NN------ 0-10: show leading tabs (and spaces)
; --X----- 1: allows jumping to a marker without quitting the tool (space key, left click)
; ---X---- 1: dark mode
; ----B--- 01: full window height, 10: No Windows title
; -----N-- 0-9: window width
; ------X- 0-9: 0: hide line column, 1-9: set column width
; -------N 0-9: font size
- Michael Vogel
- Addict
- Posts: 2818
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
Re: IDE Tool "Jump to Marker"
Here's an enhanced version of the marker tool for the PB IDE. It uses a preference file which contains all the program settings and the collected notes for source texts.
What still has to be done: adding a tool in the Purebasic's editor and the following argument string: "%FILE%" "%TEMPFILE"
Everything else (working dir, name, shortcut, etc.) doesn't need special attention (and hasn't changed from the like in the previous version).
Here's the program for Windows 64 bit.
What still has to be done: adding a tool in the Purebasic's editor and the following argument string: "%FILE%" "%TEMPFILE"
Everything else (working dir, name, shortcut, etc.) doesn't need special attention (and hasn't changed from the like in the previous version).
Here's the program for Windows 64 bit.
Re: IDE Tool "Jump to Marker"
I must admit, I neither get your option description nor the parameters in the preference file now.
How can I increase the font size in your enhanced edition, it's very tiny here.
I thought it might be "FontNote", because it is a numeric value, but nothing seems to change, even when I use 50 instead of 9.
Maybe you should add a small preference dialog.
Next is, I'm pretty sure there is no need to set Working Directory in the tool settings.
The argument is "%FILE" "%TEMPFILE", not "%FILE%" "%TEMPFILE".
I just copied it (with brain off) and was wondering why nothing happened.
In case you want to add automatic IDE installation, you can look at this:
viewtopic.php?f=12&t=62033
How can I increase the font size in your enhanced edition, it's very tiny here.
I thought it might be "FontNote", because it is a numeric value, but nothing seems to change, even when I use 50 instead of 9.
Maybe you should add a small preference dialog.
Next is, I'm pretty sure there is no need to set Working Directory in the tool settings.
The argument is "%FILE" "%TEMPFILE", not "%FILE%" "%TEMPFILE".
I just copied it (with brain off) and was wondering why nothing happened.
In case you want to add automatic IDE installation, you can look at this:
viewtopic.php?f=12&t=62033
{Home}.:|:.{Dialog Design0R}.:|:.{Codes}.:|:.{History Viewer Online}.:|:.{Send a Beer}
- Michael Vogel
- Addict
- Posts: 2818
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
Re: IDE Tool "Jump to Marker"
Thank you for your detailed informations - I didn't expect to do such a lousy work, seems to be that I got old
You're right that the additional % needs to be stripped - and I will have a look what's going wrong with the font as soon as possible.
Meanwhile you can try to increase their sizes using NumPad+ (or Ctrl+Shift+Plus if I remember correctly). F1 should also give you some hints here.
Quick Info: something like FontSize=20 has to be addded in the ini file for now as the actual program doesn't write this preferences value. This will be fixed until tomorrow...

You're right that the additional % needs to be stripped - and I will have a look what's going wrong with the font as soon as possible.
Meanwhile you can try to increase their sizes using NumPad+ (or Ctrl+Shift+Plus if I remember correctly). F1 should also give you some hints here.
Quick Info: something like FontSize=20 has to be addded in the ini file for now as the actual program doesn't write this preferences value. This will be fixed until tomorrow...
Re: IDE Tool "Jump to Marker"
ehm, no one said you did a lousy job, it was just a little irritating, at least for me.
In fact, I like your tool, I never was aware of markers in the IDE (shame on me!).
Now since I know them, I'm wondering what I should do with them, without any tool that adds notes to them?
The idea for markers was just to be able to jump forth- and backwards?
The NumPad + works fine for the font, but it will not increase the height of the list on top.
Which means the characters are quickly moving out of sight.
FontSize is better, it will also increase the height.
F1 is also useful, I missed that also.
Good job
In fact, I like your tool, I never was aware of markers in the IDE (shame on me!).
Now since I know them, I'm wondering what I should do with them, without any tool that adds notes to them?
The idea for markers was just to be able to jump forth- and backwards?
The NumPad + works fine for the font, but it will not increase the height of the list on top.
Which means the characters are quickly moving out of sight.
FontSize is better, it will also increase the height.
F1 is also useful, I missed that also.
Good job
{Home}.:|:.{Dialog Design0R}.:|:.{Codes}.:|:.{History Viewer Online}.:|:.{Send a Beer}
- Michael Vogel
- Addict
- Posts: 2818
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
Re: IDE Tool "Jump to Marker"
Updated the Marker Tool (Windows 64 bit).
Please use the argument string: "%FILE" "%TEMPFILE" and check F1 to see most of the configurable options...
Some options can only be set modifying the ini file in the section {Tool]:
FontType= Name of the font
Minimize= Minimum size of the list or note (when "zoom mode" is active)
Force= 0/1 (1 shows procedure/macro list when no markers are set)
OneTemp= 0/1 (1 counter in temp file names are ignored)
Stack= 0/1 (1 shifts the tool window when others are alread opened)
UserTheme= color list for creating a custom theme, should look like 0,808080,800000, FFFFFF,F4F4F4,FFFFFF,FFFFFF, FFE4F4,F4DEEE,FFE4F4,F4DEEE, F4FFE4,EEF4DE,F4FFE4,EEF4DE, FFFFFF,FFFFFF,800000
Remark: changing the font size can be done seperately for the marker list and notes
Please use the argument string: "%FILE" "%TEMPFILE" and check F1 to see most of the configurable options...
Some options can only be set modifying the ini file in the section {Tool]:
FontType= Name of the font
Minimize= Minimum size of the list or note (when "zoom mode" is active)
Force= 0/1 (1 shows procedure/macro list when no markers are set)
OneTemp= 0/1 (1 counter in temp file names are ignored)
Stack= 0/1 (1 shifts the tool window when others are alread opened)
UserTheme= color list for creating a custom theme, should look like 0,808080,800000, FFFFFF,F4F4F4,FFFFFF,FFFFFF, FFE4F4,F4DEEE,FFE4F4,F4DEEE, F4FFE4,EEF4DE,F4FFE4,EEF4DE, FFFFFF,FFFFFF,800000
Remark: changing the font size can be done seperately for the marker list and notes
