IUP_FB_EDITOR (simple development environment)

User projects written in or related to FreeBASIC.
Post Reply
Imortis
Moderator
Posts: 1981
Joined: Jun 02, 2005 15:10
Location: USA
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Post by Imortis »

VANYA wrote: Mar 19, 2025 17:59 As I said above, a lot of legal acts have been made in the source code (most of the optimization). And to change something / add now, based on the version of 2023 is unreasonable. When I post a new version, then it will be possible to return to this issue.
I see. I just made a few edits for my use, so nothing major, but I understand. I will be interested in seeing the new version. :D
VANYA wrote: Mar 19, 2025 17:59 But in any case, I cannot and will never want to forbid you to do something if you yourself want it. All my laid out source codes are available to any person for any needs.
Understood. Very reasonable.
VANYA
Posts: 1887
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Post by VANYA »

Editor update. What's new:

1) Added the ability to delete visual themes
2) Ban on creating more than 20 themes in the editor. Related to the limitation of the number of possible lines in IupConfig
3) When saving to the config, the search history data will be truncated if they contain hyphens or the line is longer than 100 characters.
4) Code refactoring
5) Changed the behavior when preserving the case of characters when saving. Now it will save only for *.bi, *.bas
6) Fixed the error of saving text with case settings for keywords
7) An attempt was made to improve the operation of the main dialog when resizing
8) Fixed the overlapping of widgets when quickly moving the splitter
9) Acceleration of displaying the list of functions in the window
10) The ending characters in all files are reduced to the same value CRLF (win)
11) Fix in the parser. If 1 line is occupied by a block (Sub, For, etc.), then global variables from BI files are not visible. As a result, there was no auto-completion of type fields.
12) Added transition to places of declarations/declarations of functions and types.
13) Added color change option for brackets
14) Added option to select parameters for QuickRun
15) Now the parser is disabled if the document has not been changed
16) Constants have been introduced in some places instead of dynamic strings
17) Improved timers during update (unnecessary parser actions and function window updates will not be performed if the text has not been changed)
18) Optimized parser operation
19) Added line spacing functionality
20) Fixed a memory allocation error for zero length
21) Fixed a memory leak error
22) All dialog boxes will now always be on top of the parent window when launched
23) Removed unnecessary calls to get multitext in the autocomplect.bi file
24) Fixed a bug (there was no autocomplete for For).
25) Optimized auto indent, other optimizations and minor fixes
26) Added identification parameters where a memory allocation error occurred
27) Added "Open all project files" option
28) There was no update of functions in the side window when selecting a ComboBox
29) Fixed an error when pressing the carriage with line breaks
30) Fixed a memory leak when saving a file with a case
31) Changed the case of types when auto-completing in the list of types
32) Fixed a memory leak in quick startup
33) Fixed the plug_highlight_coincidences plugin, on Linux 32, there was a crash due to incorrectly returned IdTabs
34) Fixed a potential crash issue in the tb_fill_combobuild_proc procedure, incorrect idTabs were returned on Linux 32
35) Fixed a bug (workaround) for compilation. The linker returns warnings that may be removed in the next version of the compiler, but for now they interfere with fast startup. 36) Fixed potential error locations
37) Changed type names to avoid overlaps with variable names
38) Fixed display in the output window when searching on Windows
39) Fixed paths when opening help files on Windows
40) Fixed autoformat (now the text stays on the same line it was on before formatting and the cursor stays on the same line)
41) Changed the height of ComboBoxes
42) Fixed the language file (incorrect translation)
43) Fixed a bug with the editor crash due to freeing memory by an incorrect pointer
44) Fixed a bug with the file selection dialog, when the selection of files was obtained from different directories (linux)
45) Fixed the ambiguity of the sCode variable (already in WinAPI)
46) Fixed/Changed the behavior of loading a project when adding files to a project using the file dialog. Now files are added to the project from the "Recent" tab
47) Fixed a bug when adding an existing file to the project (an empty file was copied)
48) Fixed a bug with encoding in the QuickRun settings
49) Fixed auto-completion in types. An extra item with garbage was popping up
50) Changed the function for getting the compilation status (now determined by the FBC exit code)
51) Added a German localization file (thanks to Lothar Schirm)
52) Changed the rule for switching to the F2 key for functions. Previously, function definitions were searched for and, regardless of the search, declarations were searched. Now definitions are searched. And only if not found, then declarations are searched
VANYA
Posts: 1887
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Post by VANYA »

@Imortis

Unless a serious error occurs, no editor updates are expected in the near future. So if you want, you can supplement the editor with code. Of course, it would be better if you created a separate place on GitHub or sf.net. I will definitely test any of your innovations or changes for errors and/or practicality. If I like something from your code, I will contact you to implement your code into the main branch of the editor.
Imortis
Moderator
Posts: 1981
Joined: Jun 02, 2005 15:10
Location: USA
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Post by Imortis »

VANYA wrote: Mar 23, 2025 7:30 @Imortis

Unless a serious error occurs, no editor updates are expected in the near future. So if you want, you can supplement the editor with code. Of course, it would be better if you created a separate place on GitHub or sf.net. I will definitely test any of your innovations or changes for errors and/or practicality. If I like something from your code, I will contact you to implement your code into the main branch of the editor.
If I do make changes, I will make a github for it and share a link here.
Lothar Schirm
Posts: 492
Joined: Sep 28, 2013 15:08
Location: Germany

Re: IUP_FB_EDITOR (simple development environment)

Post by Lothar Schirm »

Vanya, thank you very much for this update!
VANYA
Posts: 1887
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Post by VANYA »

Hi all!

The editor is updated. Fixed one serious and insidious mistake, led to Crash.
VANYA
Posts: 1887
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Post by VANYA »

Hi all!

The editor is updated. Fixed error.
VANYA
Posts: 1887
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Post by VANYA »

Editor updated:

1) The IUP_FB_EDITOR download page now has fixed versions of IUP_SCINTILLA
The fix was made by Kuan Hsu. Thanks to him, code folding now works well and two additional groups for highlighting keywords have been added.
Also in Linux32 (since the compiled version is 3.27), the tabs now work the same as in other systems.
I recommend using these fixed versions!
In the case of Windows, these versions are already in the archives along with the editor. For Linux, you can download it from this folder:
https://sourceforge.net/projects/iupfbe ... D_LIBRARY/
2) Added freetext plugin from SARG (thanks to him)
3) Added options: "collapse all, expand all" for folding
4) Added keyword groups (keywords4, keywords5) and everything needed for them (highlighting, autocompletion)
5) Added saving of the last file edit locations upon restarts
6) Added saving of the last active tab in projects upon restarts
7) Added functionality for tracking external file changes
8 ) Added a call to the CallBack procedure in plugins before the editor is closed.
This is necessary to deinitialize any data (for example, stopping timers)
or save any data.
9) Changed the display of tabs for Linux32. Now displayed the same as in other systems, if a corrected version of IUP is used
10) Changed the behavior of displaying line numbers (start with at least 4 columns)
11) Changed directories for saving settings. Now everything is saved in the user directory
12) Changed the directory for saving temporary files during compilation
13) Fixed launching the default editor help file for Russian-language help.
It turned out that the LANGUAGE variable does not always return anything.
Therefore, I additionally added a check using the LANG variable
14) Fixed a bug: when exiting the menu, warning dialogs about not saving the file were not displayed
15) Now active timers are disabled during ReplaceAll and closing all tabs
16) Fixed launching after compilation in QuickRun. On Linux, the program sometimes did not start after compilation.
17) Fixed places with possible potential errors
18) Fixed tab highlighting
19) Fixed file queue (memory was not freed)

Please note: now all editor settings (including plug-ins) are saved in the user's folder.:
On Linux, this is: /home/YourUserName/.IUP_FB_EDITOR
On Windows it is: C:\Users\YourUserName\AppData\Roaming\IUP_FB_EDITOR (you can find out more precisely if you enter in the console: echo %APPDATA%)
VANYA
Posts: 1887
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Post by VANYA »

An error has been detected. Fixed it. The archives have been updated
VANYA
Posts: 1887
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Post by VANYA »

Another mistake, sorry. Fixed it. The archives have been updated.
D.J.Peters
Posts: 8641
Joined: May 28, 2005 3:28
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Post by D.J.Peters »

To make the editor as a "portable App" e.g. run it from USB stick etc.
I changed fl_get_user_home_dir() in file: "file.bi" and file: "plug_highlight_coincidences.bas"
there are more places where I have to change it ?

Joshy

Code: Select all

Function fl_get_user_home_dir() As String
  Dim As String sRet
#ifdef IUP_FB_EDITOR_PORTABLE
  sRet = ExePath()
#else   
  #ifdef __fb_win32__
  sRet = Environ("APPDATA")
  #else
  sRet = Environ("HOME")
  #endif
#endif  
  Return sRet
End Function
VANYA
Posts: 1887
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Post by VANYA »

D.J.Peters wrote: Jun 04, 2025 16:13 To make the editor as a "portable App" e.g. run it from USB stick etc.
I changed fl_get_user_home_dir() in file: "file.bi" and file: "plug_highlight_coincidences.bas"
there are more places where I have to change it ?

Joshy

Code: Select all

Function fl_get_user_home_dir() As String
  Dim As String sRet
#ifdef IUP_FB_EDITOR_PORTABLE
  sRet = ExePath()
#else   
  #ifdef __fb_win32__
  sRet = Environ("APPDATA")
  #else
  sRet = Environ("HOME")
  #endif
#endif  
  Return sRet
End Function
Hi D.J.Peters!
Nothing else needs to be changed for Portable. I will add this feature in the next release , because it turned out to be necessary.
D.J.Peters
Posts: 8641
Joined: May 28, 2005 3:28
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Post by D.J.Peters »

VANYA wrote: Jun 04, 2025 16:38... because it turned out to be necessary.
You are my man :-)

Joshy
VANYA
Posts: 1887
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Post by VANYA »

Small update:

It is now possible to make the editor portable again as before. To do this, simply create a file with name portable without extensions in the editor folder (next to fbnp.exe). Previously, the editor was only portable. Before this update, the editor ceased to be portable. And now there is a choice.
I also removed unnecessary DLL files from the Win archives that were needed for the author's libraries. Moreover, now the editor runs without any unnecessary Microsoft Visual C++ 2010 Redistributable , starting with Windows XP sp2.
VANYA
Posts: 1887
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Post by VANYA »

Small Update:
1) The parser did not work correctly with the code instruction separator ":" (fixed)
2) A delay was made when deleting the settings dialog. Instant deletion caused problems,
up to a crash on WinXP. Most likely, there is a problem somewhere in the IUP
3) Iup_scintilla did not take into account single-line ASM commands when folding
(libraries fixed and rebuilt)
Post Reply