But we need to solve this problem.Zapman wrote: Mon Dec 09, 2024 2:40 am I chose a much more simplistic method which works well: I send a command line to PureBasic:
A complete code browser for PureBasic [Windows]
Re: A complete code browser for PureBasic [Windows]
Re: A complete code browser for PureBasic [Windows]
I have not such problem. Isn't it a Linux problem? I'm a bit puzzled, because I don't understand what you mean by "When I click on the file, the program starts and the file opens. When I click the next file, nothing happens."AZJIO wrote: Mon Dec 09, 2024 3:12 amBut we need to solve this problem.Zapman wrote: Mon Dec 09, 2024 2:40 am I chose a much more simplistic method which works well: I send a command line to PureBasic:
When you click on the file from where?
Re: A complete code browser for PureBasic [Windows]
Yes
When the file is pressed in the file manager, it is opened using the file associations of the files. For Windows, this is used through the registry. Linux depends on DE, but this also works through the file associations. When you execute the code:
Code: Select all
RunProgram(Chr(34) + PureBasicProgAddr$ + Chr(34), FParam$, FPath$)
I want to record the video so that it is clear. Perhaps my words are not perceived seriously. Perhaps this does not work only for me, that is, in Cinnamon. But if the old IDE version works, then I think that this is the problem of IDE, not Cinnamon or my Linux. If this problem is not eliminated, then the movement into the line above the specified method on Linux will not work.
Video (IDE error demo)
Re: A complete code browser for PureBasic [Windows]
Hi ZapMan, i tested the latest version with the new feature(search in all project files) and it work very well!!! Thank you for this awesome tool

Re: A complete code browser for PureBasic [Windows]
Thanks a lot! Your suggestions were full of common sense. They help make PBBrowser even more practical.le_magn wrote: Mon Dec 09, 2024 3:58 pm Hi ZapMan, i tested the latest version with the new feature(search in all project files) and it work very well!!! Thank you for this awesome tool
I hope you get more.

Re: A complete code browser for PureBasic [Windows]
It is not possible to force it to work in linux
Since I managed to use GTK2, I decided to try your idea with opening a file with the "/L nLine" parameter, but I again got a problem, it tries to open three files, actually the source and "/L" and "nLine".
Since I managed to use GTK2, I decided to try your idea with opening a file with the "/L nLine" parameter, but I again got a problem, it tries to open three files, actually the source and "/L" and "nLine".
Code: Select all
If Asc(idepath)
MessageRequester("", "idepath = " + idepath + #LF$ + #LF$ +
"source = " + source + #LF$ + #LF$ +
"nLine = " + nLine + #LF$ + #LF$ +
"cmd = " + Chr(34) + source + Chr(34) + " /L" + nLine)
RunProgram(idepath, Chr(34) + source + Chr(34) + " /L " + nLine, "")
Else
JumpToLine(nLine)
EndIf
Re: A complete code browser for PureBasic [Windows]
Since the IDE sources are available online, if you find the courage to do that, maybe you can look at the part that runs the command lines to see what's wrong. It's probably the same problem that's blocking the two ways you tried.AZJIO wrote: Mon Dec 09, 2024 11:56 pmIt is not possible to force it to work in linux. Since I managed to use GTK2, I decided to try your idea with opening a file with the "/L nLine" parameter, but I again got a problem, it tries to open three files, actually the source and "/L" and "nLine".
Re: A complete code browser for PureBasic [Windows]
I found a problem. Linux is used differently, the parameter "-l" or "-line". I checked and it works.Zapman wrote: Tue Dec 10, 2024 10:19 am maybe you can look at the part that runs the command lines to see what's wrong
It’s hard for me to study them. I can only hope for luck when trying to fix something. By the way, I had to re -compile with the use of GTK2 with additions from here (Multicolored), so that everything that I like worked in the kit.Zapman wrote: Tue Dec 10, 2024 10:19 am Since the IDE sources are available online, if you find the courage to do that,
Another point: RTF does not work in Linux, so you have to use Scintilla
Re: A complete code browser for PureBasic [Windows]
The Beta 0.25 version of PBBrowser has now a 'Preferences' panel:

Among the possible settings, the "Color themes" field allows you to choose a 'Dark Mode' type interface. You can modify the existing theme's colors or create new themes if you want.
Here is an example of the main window with the 'Matrix' theme:

The colors inside the 'Elements', 'Details' and 'FoundIn...' panel (see the grey background on the picture above) are still taken from the PureBasic preferences. So, Whatever you choose for the interface colors, it will only change the buttons and background of the main PBBrowser window, but not the colors used to present the code. If you want to change them, change your PureBasic preferences.
Happy Christmas, AZJIO

Among the possible settings, the "Color themes" field allows you to choose a 'Dark Mode' type interface. You can modify the existing theme's colors or create new themes if you want.
Here is an example of the main window with the 'Matrix' theme:

The colors inside the 'Elements', 'Details' and 'FoundIn...' panel (see the grey background on the picture above) are still taken from the PureBasic preferences. So, Whatever you choose for the interface colors, it will only change the buttons and background of the main PBBrowser window, but not the colors used to present the code. If you want to change them, change your PureBasic preferences.
Happy Christmas, AZJIO

Re: A complete code browser for PureBasic [Windows]
Thank you ZAPMAN for this addition and happy christmas ...

Re: A complete code browser for PureBasic [Windows]
Happy Christmas to you too

Re: A complete code browser for PureBasic [Windows]
Hi Zapman, would it be possible in a future version to add selected text search in addition to procedures, variable names etc.? For example this is the result with Azijo tool:

PBBrowser only search if text is contained in procedure name or variable name etc, same search produce 2 result(2 procedure contain in name the selected text)...
And if possible add option to enable/disable this type of search

PBBrowser only search if text is contained in procedure name or variable name etc, same search produce 2 result(2 procedure contain in name the selected text)...
And if possible add option to enable/disable this type of search

Re: A complete code browser for PureBasic [Windows]
le_magn wrote: Sun Dec 15, 2024 7:58 pm Hi Zapman, would it be possible in a future version to add selected text search in addition to procedures, variable names etc.? For example this is the result with Azijo tool(...)

I am very excited about this prospect and I therefore answer "yes", it is possible and it will be done.
Re: A complete code browser for PureBasic [Windows]
Salut Zapman,
so, I haven't yet installed code browser but I think your tool is really great.
I don't know if it will work because the way I work with PB is a bit off the beaten track.
I've been using a personal tool for several years (the code is really badly written...). I only work with PB projects and my tool displays all the projects I've added to it.
When I open a project with my tool, it saves all project's prefs files in a special folder, i.e. for my AsmGenerator project, the following folder is:
I'm happy with this, but it leads to another problem, but I'll deal with it.
All PB project files are stored in the same folder :
Would you have an idea?
so, I haven't yet installed code browser but I think your tool is really great.
I don't know if it will work because the way I work with PB is a bit off the beaten track.
I've been using a personal tool for several years (the code is really badly written...). I only work with PB projects and my tool displays all the projects I've added to it.
When I open a project with my tool, it saves all project's prefs files in a special folder, i.e. for my AsmGenerator project, the following folder is:
For this projets, saved files are :C:\Users\ldsou\AppData\Roaming\PureBasic\ASM_Generator
This means that each project has its own ‘PB environment’.ASM_Generator.prefs, ASM_Generator_Templates.prefs, ASM_Generator_Tools.prefs
I'm happy with this, but it leads to another problem, but I'll deal with it.
All PB project files are stored in the same folder :
If I install code browser in the standard way, it won't work, so I have to install it ‘by hand’ for each project, which is quite a lot of work because I have a few projects (about thirty).G:\PureBasic\Projects
Would you have an idea?
A+
Denis
Denis