FBSL Hilite Editor v1.0 Beta

(Updates to FBSL Editors, RAD and Related Stuff)

FBSL Hilite Editor v1.0 Beta

Unread postby Mike Lobanovsky » Wed Nov 16, 2005 2:04 pm

Dear all,

This MESSAGE will be the only section where I'll be
storing the new builds of the FBSL Hilite Editor with the
reported bugs corrected.

I will replace the zip containing the previous build with
the new zip containing the latest build. This is necessary
to save the upload space on our precious forum.

Please watch out for the new builds. The zip will contain
all files of the editor installation for the newbies to
be able to install the full package. If other files of the
package have been updated, the attachment description will
include the appropriate notice.

The history of the updates is included in the Edit.fbs
header.


THE INITIAL MESSAGE:
====================
Dear all,

I'm proud to present the beta version of my FBSL editor with
syntax highlighting capabilities. I decided not to write a
help file from scratch at this stage because the source code
is very thoroughly commented and much of the editor's
capabilities are self-evident.

What it does:
=============
1. It highlights FBSL script texts in real-time without any
extra dlls unlike CodeMax or Scintilla or lots of others that

are several hundred kilos in size themselves and quite often
require extra multi-megabyte dependencies like VB or CRT etc.
runtimes. And it does it real fast, at least on my 1.75GHz
Sempron under WinXP Pro SP2.
2. It provides customizable highlighting interface, i.e. you
are free to select the color palettes to your own liking, and
the editor will store your preferences for you. Or optionally
you may switch off highlighting on the fly and enjoy yourselves
looking at a dull replica of the standard edit control.
3. It utilizes any font that is installed in your system and
provides rather accurate metrics and smooth scrolling. However,
the standard edit control that is used here as a means to
avoid the necessity to write extra code for custom metrics
does have certain inconsistencies, especially as far as
selection highlighting is concerned. So I'm not inclined to
regard the inability to highlight empty line selections or
linefeeds as a bug. After all, neither does the Notepad which
I'm using to write this note highlight selected empty lines.
4. It provides shortcuts for frequently used operations in the
form of toolbar buttons and hotkeys like F5 for running the
script or F3/Shift+F3 to search the text forward/backward,
respectively. And it'll provide more of these in the future.
5. It keeps all the files it needs in the same directory and
stores its settings in the good old ini file which doesn't
unnecessarily populate your registry with unwanted stuff. So,
to uninstall, you'll just have to delete the editor and the
editor-dependent files, and that's all!

What it doesn't:
================
1. It doesn't let you edit several files in one instance or
split the display. But after all, it's just an editor, not an
IDE, isn't it?
2. It doesn't have a visual designer for the reasons stated
in Item 1.
3. It doesn't correct your spelling or syntax. Neither does
it indicate the lines that contain the errors at run-time.
But those are the features of the IDE, not of an editor, and
much of it is done by the FBSL.exe itself.
4. It doesn't support folding because it relies on the
standard edit control's metrics and the standard control
doesn't recognize folding either. So the pain of writing
custom source for metrics overweighs the alleged benefits.

What I need:
============
1. I need your feedback. While the editor underwent rigorous
alpha-testing by Gerome and me on the XP platform, it may
show some unexpected behavior on other platforms and especially
on slower machines. I'd be glad to know the results.
2. I need your ideas on how the editor may be improved. I
promise to implement the improvements quickly and efficiently
so that the editor may become part of the upcoming full-featured
MDI-based IDE.

So just unzip into any directory (mind that the resources should
be in the "\Res" subfolder of that directory) and don't forget
to select the appropriate paths to the executable used to run
and compile your scripts (FBSL.exe or FBSL_Tiny.exe) and to the
FBSL help file!

Thank you all in advance.

Mike Lobanovsky

FOR THE LATEST DOWNLOAD, PLEASE GO viewtopic.php?p=2695#2695
Last edited by Mike Lobanovsky on Thu Mar 09, 2006 3:00 pm, edited 20 times in total.
User avatar
Mike Lobanovsky
FBSL Administrator
FBSL Administrator
 
Posts: 1823
Joined: Tue Apr 19, 2005 8:22 am
Location: Republic of Belarus

Unread postby Mike Lobanovsky » Wed Nov 16, 2005 4:14 pm

Dear all,
=========

Thanks for the appreciation of my job.
I'll be maintaining this editor until the known bugs are killed.
Then I'll post the final v1.0 release with multilingual support
and leave it as it is. I'll be engaged in the full-sized IDE project
then based on the MDI feature of FBSL which is under construction
but not yet fully implemented.

It'll have the following features which you indicate but which
are NOT part of an editor, but of the Integrated Development
Environment system:

1. Concurrent multiple document editing (whether tabbed or otherwise)
2. Syntax checking and (optional) correction
3. Visual designer for forms with automatic code generation
4. Run to breakpoints with variables dumping capability
5. Run-time error breaks with error lines highlighted (much of it
is done by FBSL.exe/.dll themselves)
6. Unlimited Undo/Redo
6. Etc. etc. etc.

Now personally:
===============

1. Cebestendres: Charles, I can't duplicate the 'supr'/backspace/delete bug
on my PC with any keystroke repeat rates or under any circumstances... :(
I think I'll try to install a VMWare virtual machine running Win98 on
my home PC and see if the bug appears... If it does, I'll kill it.

2. SideshowBob: Bob, you may overwrite your old richedit dll with the
new one right in your System32 or whatever system directory you have.
The new richedit dll is platform-independent so you'll never need the old
one again. The scrollbar bug has been corrected in Build 1.0.1 --
please get the new zip.

3. Cpilot & Gerome: Boys, I can't reproduce the splash bug of yours on my
PC. Anyway, I've changed the splash background routine in Build 1.0.1
so please let me know if the splash is now OK.

4. SideshowBob & Gerome: Please tell me if you have the 'ALLOC/Replace'
bug only under W98 or under XP SP1/2 also because I can't reproduce it
under my XP Pro SP2... :(

General:
========

The new Build 1.0.1 features extensive hotkey support so don't miss
this build!

Yours,

Mike :)
User avatar
Mike Lobanovsky
FBSL Administrator
FBSL Administrator
 
Posts: 1823
Joined: Tue Apr 19, 2005 8:22 am
Location: Republic of Belarus

Unread postby SideshowBob » Wed Nov 16, 2005 9:58 pm

Mike Lobanovsky wrote:you may overwrite your old richedit dll with the new one right in your System32 or whatever system directory you have. The new richedit dll is platform-independent so you'll never need the old one again.

Done. Thank you. :D

The scrollbar bug has been corrected in Build 1.0.1 -- please get the new zip.

Yes, It works correctly now. thank you. :D

Please tell me if you have the 'ALLOC/Replace'
bug only under W98 or under XP SP1/2

For me, the bug is under Win98 (First Edition). I don't have XP.
User avatar
SideshowBob
FBSL geek
FBSL geek
 
Posts: 472
Joined: Sat Mar 12, 2005 11:04 pm
Location: Saskatchewan

Unread postby cebestendres » Thu Nov 17, 2005 1:05 am

A few more suggestions for Mike's editor or IDE

* Recent files

* Save as htm or rtf
Useful to publish FBSL colorized code over the net, code more readable
cebestendres
FBSL geek
FBSL geek
 
Posts: 266
Joined: Thu Apr 28, 2005 8:38 pm

Unread postby Gerome » Thu Nov 17, 2005 1:12 am

Hi,

cebestendres wrote:A few more suggestions for Mike's editor or IDE

* Recent files

* Save as htm or rtf
Useful to publish FBSL colorized code over the net, code more readable


Just prepare $dollars please... and after we'll be aware of your wishes :)
Yours,

(¯`·._.·[Gerome GUILLEMIN]·._.·´¯)
:: Full SETUP w. HELP 05th of December 2011 ::
http://www.fbsl.net/setup/FBSLv3.exe [full v3.4.10 installation pack]
http://www.fbsl.net/setup/FBSLv3bin.zip [minimal upgrade to v3.4.10]
Laissons les jolies femmes aux hommes sans imagination. / Let us leave pretty women to men without imagination.(M.Proust)
The success is a defeat for the one who does not want to dance any more! (H.F. Thiefaine)
User avatar
Gerome
FBSL Administrator
FBSL Administrator
 
Posts: 3149
Joined: Sat Mar 12, 2005 9:06 pm
Location: Paris -- France

Unread postby Mike Lobanovsky » Thu Nov 17, 2005 10:56 am

Dear all,

I made a quick investigation into the Replace All bug matter and I've
found out that there's a helluvalotta builds of riched20.dll around.
There's also a rare EM_SETTEXTEX not described in the M$ Win32 Programmer's
Guide which I used for the Replace All procedure.

So I've decided to change Replace All to the good old EM_REPLACESEL which
I use for the ordinary Replace procedure. Both variants work equally well
under my XP with my riched20.dll, and I hope that the change will kill
the bug with the riched20.dll builds you have.

Thanks Gerome and Bob for being so insistent on finding out what's wrong
with this routine. I was about to give up hope... :)

BTW I've installed a virtual W98 and found out that the editor works
almost equally well under W98 too. But it seems that under W98, the
editor is not able so save files longer than 64K. So please make a
backup copy of Edit.fbs (it seems to be the longest fbs script so far ;) ),
open it, change something and resave to see if it is saved OK on your
platforms. Please let me know the results a.s.a.p.

Thanks in advance and enjoy Build 1.0.3!

Mike :)
User avatar
Mike Lobanovsky
FBSL Administrator
FBSL Administrator
 
Posts: 1823
Joined: Tue Apr 19, 2005 8:22 am
Location: Republic of Belarus

Unread postby Mike Lobanovsky » Thu Nov 17, 2005 11:07 am

cebestendres wrote:A few more suggestions for Mike's editor or IDE
* Recent files
* Save as htm or rtf
Useful to publish FBSL colorized code over the net, code more readable


Hi cebestendres,

1/ Recent files will be there in the upcoming builds.
2/ The save-as-rtf feature is easy to implement because the rich edit control supports this format. I'll implement it in the near future. The html format is alien to the rich edit box so I'll not take the trouble of implementing it, sorry... :)

Mike :)
User avatar
Mike Lobanovsky
FBSL Administrator
FBSL Administrator
 
Posts: 1823
Joined: Tue Apr 19, 2005 8:22 am
Location: Republic of Belarus

Unread postby SideshowBob » Thu Nov 17, 2005 6:31 pm

Mike Lobanovsky wrote:I've decided to change Replace All to the good old EM_REPLACESEL which I use for the ordinary Replace procedure.... I hope that the change will kill the bug with the riched20.dll builds you have.

Replace works for me now. :)

... it seems that under W98, the editor is not able so save files longer than 64K.

I discovered that a long time ago. I narrowed it down to the FBSL_GetText function which will not get more than 64K from the edit control. If I recall correctly, Gerome said that there is nothing FBSL can do about that - the problem is with Win98.

(For myself, I have a short attention span so I only write short scripts anyway. :D )
User avatar
SideshowBob
FBSL geek
FBSL geek
 
Posts: 472
Joined: Sat Mar 12, 2005 11:04 pm
Location: Saskatchewan

Unread postby Mike Lobanovsky » Thu Nov 17, 2005 6:38 pm

SideshowBob wrote:I narrowed it down to the FBSL_GetText function which will not get more than 64K from the edit control. If I recall correctly, Gerome said that there is nothing FBSL can do about that - the problem is with Win98.


OK I'll look into the FBSL_GetText function code. In the meantime, you may use #Include to make the files shorter if needed.

Thanks!

Mike :)
User avatar
Mike Lobanovsky
FBSL Administrator
FBSL Administrator
 
Posts: 1823
Joined: Tue Apr 19, 2005 8:22 am
Location: Republic of Belarus

Unread postby Mike Lobanovsky » Fri Nov 18, 2005 11:20 am

Dear all,

I've posted the new Build 1.0.4. It corrects a lot of problems with conflicting dialog boxes. Please be sure to upgrade!

Mike :)
User avatar
Mike Lobanovsky
FBSL Administrator
FBSL Administrator
 
Posts: 1823
Joined: Tue Apr 19, 2005 8:22 am
Location: Republic of Belarus

Unread postby Mike Lobanovsky » Fri Nov 18, 2005 12:47 pm

Hi cebestendres,

I confirm there's a bug with the backspace/delete keys at high typematic rates, but only on slow machines and possibly only under W98.

I've reproduced it on the virtual W98 machine. The keyboard buffer overflows with these keys. I know how to fight keyboard buffer overflows under DOS (very easy) but I've never done this under Windows. But I think it can be done too.

I'll look into it and try to correct it in the future beta builds.

Thanks for pointing out this to me.

Mike :)
User avatar
Mike Lobanovsky
FBSL Administrator
FBSL Administrator
 
Posts: 1823
Joined: Tue Apr 19, 2005 8:22 am
Location: Republic of Belarus

Unread postby Mike Lobanovsky » Mon Nov 21, 2005 11:22 am

Hi all,

I'm uploading the latest Build 1.0.5 with a highlight string bug corrected.

Mike :)
User avatar
Mike Lobanovsky
FBSL Administrator
FBSL Administrator
 
Posts: 1823
Joined: Tue Apr 19, 2005 8:22 am
Location: Republic of Belarus

Unread postby Mike Lobanovsky » Tue Nov 22, 2005 12:21 pm

Hi everybody,

I'm uploading Build 1.0.6 as of today. MRU list added, new splash, new ini file structure.

Please upgrade!

Mike :)
User avatar
Mike Lobanovsky
FBSL Administrator
FBSL Administrator
 
Posts: 1823
Joined: Tue Apr 19, 2005 8:22 am
Location: Republic of Belarus

Unread postby Mike Lobanovsky » Tue Nov 22, 2005 2:07 pm

Hey Gerome,

Your Comp/Decomp dreams have come true:
http://www.fbsl.net/phpbb2/viewtopic.php?p=1526#1526

Also splash and other directory bugs have been corrected. Frankly, I peeped it up in Cpilot's code (thnx!).

Get the newest Build 1.0.7.

Mike :)
User avatar
Mike Lobanovsky
FBSL Administrator
FBSL Administrator
 
Posts: 1823
Joined: Tue Apr 19, 2005 8:22 am
Location: Republic of Belarus

Unread postby Mike Lobanovsky » Tue Nov 22, 2005 2:37 pm

Hi all,

The F5 script execution bug killed. Please update to Build 1.0.8.

Mike :)
User avatar
Mike Lobanovsky
FBSL Administrator
FBSL Administrator
 
Posts: 1823
Joined: Tue Apr 19, 2005 8:22 am
Location: Republic of Belarus

Next

Return to FBSL v3 Editors

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest