windows Multi-language Editor ( English;French;Spanish)

User projects written in or related to FreeBASIC.
AGS
Posts: 1284
Joined: Sep 25, 2007 0:26
Location: the Netherlands

Re: windows Multi-language Editor ( English;French;Spanish)

Postby AGS » Mar 18, 2013 6:16

marpon wrote:Thank you AGS for your very constructive feedback !

The source code was available during 2 months since end december( only 3 downloads during that time)
it is done with Powerbasic , no problem to put it visible, if some interest...

I was asking, if you read better, feed back on functionalities, not to compete with FBEDIT, in fact it is more comparable with FBIDE ...

Code: Select all

And: what can your do that fbedit cannot do?
Why would fb users want to use your editor instead of fbedit?


It is exactly what i want to know ! , is your answer : no interest ?


Look at what St_W wrote and has done.
He has done exactly what any fb user will do:
--> install your editor
--> use it a bit to see whether it's better than the ide they are currently using
and then either
-->switch to using your ide (if your program is 'better' than what they are currently using))
or
-->not use it because what they are currently using is better.

Perhaps you were asking the wrong question. It's not what functionality is missing from
your ide but why should users use your ide instead of the one they are using?

As far as features are concerned I'd say: look at what's available.
Does your ide add anything (in terms of functionality) to what's on offer already?
You can find that out by simply downloading other ide's and
comparing the functionality on offer by what your ide has on offer.

Features missing from your ide are
--> a side pane with a list of functions/producer/macros etc...
(used to navigate the source code fast). See geany for how this looks.
--> some sort of debugging facility (either gdb based or otherwise).
Perhaps you could glue the debugger by SARG onto your ide?
--> regular expression search/replace. Support for that is less than hot in
scintilla but there is some support for it. Programmers notepad has some
nice search/replace.
--> plugin support (and/or scripting support)
Jedit comes with extensive plugin support (scripting support) which
adds a lot of functionality to it. Problem here is that you'd have to
reuse some BASIC interpreter for scripting purposes.
There are lots of those on sourceforge (most written in C).
Writing one yourself would be very time-consuming but reusing
an external one could prove helpful.
The Geany devs have opted to include lua scripting. While this is
nice I'd think fb programmers would prefer to use BASIC as a scripting
language.

There are quite a few editors out there that use scintilla. So there should be
lots of code for you to 'reuse' ('steal' or whatever you would like to call it)
to get some feature implemented. What would be even better is if your
ide would be cross platform. That would make your ide one of the few
that works on more than one platform (which is a definite plus).

You'd have to redo your editor so it uses gtk+ instead of win32 api.
If you are REALLY interested in making some kind of move to gtk+
I'd be willing to have a look at the current code and see how much
work would be involved in porting it to gtk+ (you could ask
about that on the forum as well as there are bound to be people
that have used gtk+ a lot more than I have).

It is great to see how many people have tried (and
are trying) to create an ide for freebasic (this includes you of course).
And it is most unfortunate most ide's never get to the point where fb
programmers start seeing the ide as the 'default' fb ide.

Last but not least: your ide has to compete with some well
established editors. You have to keep that in mind while working on it.
Most of the existing editors do have their weak points.

fbedit, for example, is not cross platform and is partly written in assembler.
It has some other issues as well but I forgot (I am using programmers
notepad myself).

No fb editor I know of has an integrated gdb front end. Which is odd as gdb is
the default debugger for fb programmers. If you were to add gdb support to your
ide it would have a unique feature (Geany has this kind of functionality but
only by means of a plugin that only works on linux).

'Anjuta for freebasic' would be the ultimate thing to have
http://projects.gnome.org/anjuta/
https://git.gnome.org/browse/anjuta/tree/

Yes, if you were to create 'Anjuta for freebasic' your ide would become THE fb ide.
(lots of Anjuta functionality comes in the shape of plugins).
SARG
Posts: 903
Joined: May 27, 2005 7:15
Location: FRANCE

Re: windows Multi-language Editor ( English;French;Spanish)

Postby SARG » Mar 18, 2013 9:21

AGS wrote:--> some sort of debugging facility (either gdb based or otherwise).
Perhaps you could glue the debugger by SARG onto your ide?

The easiest way from the ide, just launch FBdebugger with the name of debuggee as parameter.
marpon
Posts: 338
Joined: Dec 28, 2012 13:31
Location: Paris - France

Re: windows Multi-language Editor ( English;French;Spanish)

Postby marpon » Mar 18, 2013 12:46

thank all for the feedbacks

but let me say, i normally can ask in my posts the question I want !

in these cotes :
Perhaps you were asking the wrong question. It's not what functionality is missing from
your ide but why should users use your ide instead of the one they are using?


And: what can your do that fbedit cannot do?
Why would fb users want to use your editor instead of fbedit?


Make it compete-able with fbide or fbedit (the latter in my case) and people will probably start using your program. Otherwise I'll promise you that your program won't be successful.


you are,tring to teach me in Marketing, why not , but it's not my interrest
I do not sell it , nor try to convert happy people with the tools they like.

I am quite new in freebasic, coming from fortran , C , C++, visual basic , Autoit and powerbasic , i've tested plenty of editors and of course : Fbedit

For me as a RAD tool : FIREFLY is much more simple to use so it is my choice and i've made some extensions to it
, but for editor i wanted to have a good one , CSED was for me very good so I 've done the freebasic version wich can cooperate with FIREFLY.



In your feedbacks they were
some incorrect points : Auto complete ; folding ; search are included simply set the options,
some not complete : list of functions is included ; simple debugging tool Ztrace is normally suffisant and very easy

other features : ( in others ide ? )
Tips : configurable with your include api or lib files
2 compiler versions configuration with direct swich between them
complete "find in file " tool
complete backup file management
configurable macros holding your own code
messagebox assistant

Unique features :
rc code enbedded in source file , no need to create rc file just for 1 icon
or defined rc file name directly in source code
defined compiled outpout name EXE or DLL
Dll creation : with/without decoration ; your own DllMain
easy debug tool : ztrace
cooperation with FIREFLY_MP

All is available for free for everybody or nobody ...

I know ( and said) german is not good, I tried to initiate the process for a translation , unfortunatly nobody help.
AGS
Posts: 1284
Joined: Sep 25, 2007 0:26
Location: the Netherlands

Re: windows Multi-language Editor ( English;French;Spanish)

Postby AGS » Mar 18, 2013 21:27

@marpon
Sorry you interpreted my reaction the way you did. It was not my intention to teach
you something or tell you what questions you should (or should not) ask. I wrote
my reaction with the best of intentions. I shall not bother you again.
marpon
Posts: 338
Joined: Dec 28, 2012 13:31
Location: Paris - France

Postby marpon » Mar 29, 2013 16:31

New tool for CSED_FB
Win32GUI Front End for header converter H2BI tool http://dl.dropbox.com/u/104528350/Infos/H2Bi.rar

Following the original post http://www.freebasic.net/forum/viewtopic.php?f=8&t=15364&start=270

You have here :
the executable,
the source code,
the project structure and the generated files to compile with Firefly if you wish,
make.bat to compile from the source ( first check the path for fbc.exe).

If you want use that tool with CSED_FB simply put the 2 files : h_2_bi.com + H2BI.exe in the CSED_TOOLS folder
the GUI will be auto-configured to work with CSED_FB.

But that GUI can also work as standalone (always coupled with h_2_bi.com ) , you should configure yourself the editor path you want to use with (or not , by default it will be notepad )
Kwabbernoot
Posts: 73
Joined: Apr 19, 2010 18:23
Location: NL

Re: windows Multi-language Editor ( English;French;Spanish)

Postby Kwabbernoot » Oct 18, 2013 14:55

It could become a great editor. I like it.
I like the edge on the right (with margin 75, handy for a print-out of the program). I like the ability to remove trailing spaces and the ability to convert tabs to spaces.
However I found the following errors:
1) Compilation only works if the executable (.exe file) does not exist. Strange. If the executable already exists, the system aborts with: linking failed … terminated with exit code 1.
2) The setting of colors is a weak point in the editor.
Options – Colors and fonts at the bottom of the screen you see:
“Always use the default Foreground color”, the help documentation says: “Background color”. I think, it indeed must be the background color. It makes no sense to have the same foreground color everywhere. And if it is indeed the background color, it doesn't work. I didn't see a difference between switching it on or off.
3) I didn't find a way to change the color of the line numbers. I would expect the option “lines numbers” is the right place to handle that. However it changes the color of numbers used in the program. No idea wat option “Numbers” does.

Nice to have:
1) Ability to delete the rest of a line
2) Ability to do a quick run as in Fbide (compilation to a temporary .exe file)

The editor is also used by the XBLite compiler, where it's called XSED.
http://www.xblite.com/xsed.html
marpon
Posts: 338
Joined: Dec 28, 2012 13:31
Location: Paris - France

Re: windows Multi-language Editor ( English;French;Spanish)

Postby marpon » Oct 23, 2013 14:48

1) Compilation only works if the executable (.exe file) does not exist. Strange. If the executable already exists, the system aborts with: linking failed … terminated with exit code 1.


No, it is not because the program exists but because it is still running (hidden ? )

2) The setting of colors is a weak point in the editor.
Options – Colors and fonts at the bottom of the screen you see:
“Always use the default Foreground color”, the help documentation says: “Background color”.


true , it is background , change in English.lng file "Always Use the Default Foreground Color" by "Always Use the Default Background Color"

you can also change 1 other mistake in English.lng file "C&oulors and Fonts..." by "C&olors and Fonts..."

3) I didn't find a way to change the color of the line numbers.

true , its a bug ! i have to check

2) Ability to do a quick run as in Fbide (compilation to a temporary .exe file)

this functionnality exists , when you open a new .bas file , the name is "Untitled... " you don't need to save it to compile it and the compiled file will be created into your temp folder
Kwabbernoot
Posts: 73
Joined: Apr 19, 2010 18:23
Location: NL

Re: windows Multi-language Editor ( English;French;Spanish)

Postby Kwabbernoot » Oct 24, 2013 15:53

marpon wrote:
1) Compilation only works if the executable (.exe file) does not exist. Strange. If the executable already exists, the system aborts with: linking failed … terminated with exit code 1.

No, it is not because the program exists but because it is still running (hidden ? )

It's now working. It took some time to find out. It was caused by my Antivirus software (Comodo Internet Security). I've switched off the sandboxing and now it's working.


marpon wrote:
2) The setting of colors is a weak point in the editor.
Options – Colors and fonts at the bottom of the screen you see:
“Always use the default Foreground color”, the help documentation says: “Background color”.

true , it is background , change in English.lng file "Always Use the Default Foreground Color" by "Always Use the Default Background Color"

Okay. And as I mentioned earlier it doesn't work. I didn't see a difference between switching it on or off.

marpon wrote:
2) Ability to do a quick run as in Fbide (compilation to a temporary .exe file)

this functionnality exists , when you open a new .bas file , the name is "Untitled... " you don't need to save it to compile it and the compiled file will be created into your temp folder

Okay. I've tried and indeed it works with Compile and Execute.
fxm
Posts: 9071
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: windows Multi-language Editor ( English;French;Spanish)

Postby fxm » Oct 24, 2013 17:00

Just took a quick look on the French version!

In French:
compileur compilateur
11 times in 'Français.lng'.

And perhaps:
Plier Replier
Pliage Repliement
marpon
Posts: 338
Joined: Dec 28, 2012 13:31
Location: Paris - France

Re: windows Multi-language Editor ( English;French;Spanish)

Postby marpon » Oct 26, 2013 9:57

New version here :
http://www.freebasic-portal.de/downloads/ides-fuer-freebasic/csedfb-multi-language-windows-ide-for-freebasic-259.html

corrected bug in the line numbers colors ...
corrected some text in english.lang

now you can compile directly to EXE, DLL or LIB just by putting in the code :
#Define COMPIL_NAME exe for exe file , with the name of the .bas file > "bas_file_name".exe
#Define COMPIL_NAME dll for dll file > "bas_file_name".dll
#Define COMPIL_NAME lib for lib file > lib"bas_file_name".a

obviously if you put a name it will compile to that name too as it was before
#Define COMPIL_NAME foo.exe or #Define COMPIL_NAME "foo.exe" > foo.exe
#Define COMPIL_NAME foo.dll or #Define COMPIL_NAME "foo.dll" > foo.dll
#Define COMPIL_NAME foo.lib or #Define COMPIL_NAME "foo.lib" > libfoo.a

COMPIL_NAME has to be in upper-case the rest don't care with or without double quotes

to unable that functionnalities , just comment the specific line as ' #Define COMPIL_NAME foo.exe

last point
to avoid false virus detection with upx files, I compressed the accepting exe/dll with mpress.exe
wich is normaly not subject to false virus detection.

for french text thank you for the comments :
feel free to do it , i will see to incorporate at least "compilateur" for "Repliement" i don't like
i am also interested in German translation, or others languages to add
fxm
Posts: 9071
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: windows Multi-language Editor ( English;French;Spanish)

Postby fxm » Oct 26, 2013 13:47

IMHO:
- "Unfold/Fold" <=> "Déplier/Replier"
- "Unfolding/Folding" <=> "Dépliement/Repliement"
- "Fold line" <=> 'Pliure"
- "Fold" <=> "Pli"

En français:
- un pli est la partie repliée ou la marque d'une pliure,
- un pliage est l'action de plier ou son résultat.

FBEdit in French uses only "Déplier/Replier".
Kwabbernoot
Posts: 73
Joined: Apr 19, 2010 18:23
Location: NL

Re: windows Multi-language Editor ( English;French;Spanish)

Postby Kwabbernoot » Oct 27, 2013 15:48

Thanks Marpon. Good job.
I tried:

Code: Select all

#DEFINE COMPIL_NAME "D:\FB\EXE\Win\WinApi.exe"

To get the exe file in a different directory. But it failed. Probably too difficult.
marpon
Posts: 338
Joined: Dec 28, 2012 13:31
Location: Paris - France

Re: windows Multi-language Editor ( English;French;Spanish)

Postby marpon » Oct 29, 2013 12:35

now it could work :

get new evolution here :
http://www.freebasic-portal.de/downloads/ides-fuer-freebasic/csedfb-multi-language-windows-ide-for-freebasic-259.html
#DEFINE COMPIL_NAME "D:\FB\EXE\Win\WinApi.exe"


the path of the folder must exist before compiling ,
if not , it will compile to the folder of .bas file and with the name of bas file

ex: if your bas file is C:\XXX\fff.bas

and you specify #DEFINE COMPIL_NAME "D:\FB\EXE\Win\WinApi.exe"

if the folder exists D:\FB\EXE\Win > it will compile to D:\FB\EXE\Win\WinApi.exe

but if your folder does'nt exist > if will produce C:\XXX\fff.exe

nota : you can miss the quotes in the name
as : #DEFINE COMPIL_NAME D:\FB\EXE\Win\WinApi.exe
Kwabbernoot
Posts: 73
Joined: Apr 19, 2010 18:23
Location: NL

Re: windows Multi-language Editor ( English;French;Spanish)

Postby Kwabbernoot » Oct 30, 2013 14:36

It works. Thanks Marpon.
- What is file: relance.exe?
- Did you change anything in CSED_FB.ini file? I have of course my personal settings in that file. So I can't overwrite it with your file. Do I need to change anything?
- I don't want the Windows API keywords in a different color. Can I remove (or rename) some of the keyword textfiles in directory Keywords?
marpon
Posts: 338
Joined: Dec 28, 2012 13:31
Location: Paris - France

Re: windows Multi-language Editor ( English;French;Spanish)

Postby marpon » Oct 30, 2013 17:37

Relance.exe is just a tool to restart automaticly CSED_FB after changing language , if you don't change language you can skip it.
But this tool is general purpose , it checks if specific prog is not working , then it lauchs that specific prog and after 5 secondes relance.exe will end.
If you want to use it for your own needs , use in your progs ShellExecute(Null, Null, "relance.exe", "your_specific_fullpathprog.exe", Null, SW_HIDE) or SW_SHOW dont care nothing to show.

yes , do not replace your CSED_FB.ini file by the one in the distribution , if you change it the program restarts without your previous settings , paths , editor settings... and you have to re-actualize them

Windows API keywords : you can avoid to have them in different color by replacing the file CSED_API_KEYWORDS.TXT by an empty file with the same name ( to avoid warning when CSED_FB starts ) , but doing that you also loose the direct access to api help by F1 when the caret is on that api item (if you have defined the path to win32.hlp of course ) , it up to you.

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 11 guests