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

User projects written in or related to FreeBASIC.
Lothar Schirm
Posts: 333
Joined: Sep 28, 2013 15:08
Location: Bavaria, Germany

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

Postby Lothar Schirm » May 21, 2016 15:47

Hi Marpon,

I did some tests with CSED_FB 1.0.7.0. Great job! I like in particular very much that syntax highlighting and code completion are also implemented for WinAPI functions. This, together with the MessageBox Assistant, makes it very attractive for programmers Windows users.

I found, however, some problems.

1. When I click in the menu Help -> Help Windows API, I get an error message "Document Explorer not installed!", though I have definded the path to win32_fb.chm in the Compiler Options and paths.

2. When I activate "Autocomplete Constructs" in the editor options, constructs are completed in Upper Case, though I selected "Original Case" for keywords. Example:

Code: Select all

For i = 1 To 20
   
NEXT


3. I cannot get the zTrace function to run. When I compile the following code:

Code: Select all

' to use zTraceFB.dll
#Define _ZTRACE

#Ifdef _ZTRACE   ' define Dll Function
   Extern "Windows-MS" Lib "zTraceFB"
      Declare Function zTrace Alias "zTraceFB" (ByRef mes as String) As Integer
   End Extern
#Else
   Declare Sub zTrace (mes As String)
   Sub zTrace (mes as String)
   End Sub
#Endif
   zTrace "Init : zTrace !"
   zTrace "..............."
   zTrace str(111111) ' note str() needed with numeric value
' end ztrace code

Dim As Integer i
Dim As String s(20)

For i = 0 To 20
   s(i) = Str(i)
   zTrace(s(i))
   print s(i)
Next

Sleep

I get compiler errors. This is contents of the log file:

"C:\FreeBASIC\fbc.exe" -x "C:\FreeBASIC\Progs\Untitled1.exe" -w pedantic -exx -s console -v Untitled1.bas > Untitled1.log 2>&1


FreeBASIC Compiler - Version 1.05.0 (01-31-2016), built for win64 (64bit)
Copyright (C) 2004-2016 The FreeBASIC development team.
standalone
target: win64, x86-64, 64bit
compiling: Untitled1.bas -o Untitled1.c (main module)
compiling C: C:\FreeBASIC\bin\win64\gcc.exe -m64 -march=x86-64 -S -nostdlib -nostdinc -Wall -Wno-unused-label -Wno-unused-function -Wno-unused-variable -Wno-unused-but-set-variable -Wno-main -Werror-implicit-function-declaration -O0 -fno-strict-aliasing -frounding-math -fno-math-errno -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -masm=intel "Untitled1.c" -o "Untitled1.asm"
assembling: C:\FreeBASIC\bin\win64\as.exe --64 --strip-local-absolute "Untitled1.asm" -o "Untitled1.o"
linking: C:\FreeBASIC\bin\win64\ld.exe -m i386pep -o "C:\FreeBASIC\Progs\Untitled1.exe" -subsystem console "C:\FreeBASIC\lib\win64\fbextra.x" --stack 1048576,1048576 -s -L "C:\FreeBASIC\lib\win64" -L "." "C:\FreeBASIC\lib\win64\crt2.o" "C:\FreeBASIC\lib\win64\crtbegin.o" "C:\FreeBASIC\lib\win64\fbrt0.o" "Untitled1.o" "-(" -lzTraceFB -lfb -lgcc -lmsvcrt -lkernel32 -luser32 -lmingw32 -lmingwex -lmoldname -lgcc_eh "-)" "C:\FreeBASIC\lib\win64\crtend.o"
C:\FreeBASIC\bin\win64\ld.exe: skipping incompatible ./zTraceFB.dll when searching for -lzTraceFB
C:\FreeBASIC\bin\win64\ld.exe: skipping incompatible ./zTraceFB.dll when searching for -lzTraceFB
C:\FreeBASIC\bin\win64\ld.exe: cannot find -lzTraceFB
linking failed: 'C:\FreeBASIC\bin\win64\ld.exe' terminated with exit code 1



Compile/link Error
caseih
Posts: 1381
Joined: Feb 26, 2007 5:32

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

Postby caseih » May 21, 2016 16:12

Hate to ask the obvious but is the zTraceFB.dll 32-bit or 64-bit? I suspect the former, since the linker ld.exe clearly has found the dll, but says it cannot use it.
Lothar Schirm
Posts: 333
Joined: Sep 28, 2013 15:08
Location: Bavaria, Germany

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

Postby Lothar Schirm » May 22, 2016 16:37

Yes, seems so. Actually, I print debug information to the console window (OPEN ERR etc.), but it would be really nice to have this useful feature also avaialble for FB 64 Bit!
kcvinu
Posts: 174
Joined: Oct 07, 2015 16:44
Location: Keralam, India

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

Postby kcvinu » Aug 26, 2016 9:34

Hi,
Great IDE. Thanks for this amazing software. I have some suggestions to make it more better.
1. When autocompleting "If, For, While, Function", the ide displaying an "X" and "FuncName" . We need an option to avoid that. Because, we don't want to name our for loop variable as "X" and we don't want to name our function as "FuncName". So that should be an empty space. Rest is ok.

2. Does this ide lacks intellisense ?. I mean when we type "Func" it should display an intellisense to complete that word as "Function"
marpon
Posts: 342
Joined: Dec 28, 2012 13:31
Location: Paris - France

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

Postby marpon » May 22, 2019 6:49

Reactivating that old topic
because got interresting remark in that related topic
https://www.freebasic.net/forum/viewtopic.php?f=8&t=27609&start=25

aurelVZAB said
Then i use Jose Roca CSED-FB version ( i changed SciLexer to 3.7.4.0)


I would be happy to know what is the reason for that change?
aurelVZAB
Posts: 289
Joined: Jul 02, 2008 14:55
Location: Croatia
Contact:

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

Postby aurelVZAB » May 22, 2019 7:29

hi marpon

what is the reason..
well i must say that i don't use FB very much
and when i found on my computer that i already have it i must use some editor .
I am lazy to configure my own editor AurelEdit to work with FreeBasic.
It is far more simpler and not advanced as CSED by Jose.
Maybe i can do that but just for GUI app...i don't like very much console programs and FB have so many command line options
which are sometimes very confusing especialy for my as occasional user..heheh

however CSED_FB is very nice and i like it.
First problem i have ,when i try to open file is
all code is in RED color...so i go to OPTIONS
and tried to change some things but not respond .
Then i remove scilexer to this one i used in my editor 3.7.4.0 and VOILA
CSED_FB highliter work as it should be ...
marpon
Posts: 342
Joined: Dec 28, 2012 13:31
Location: Paris - France

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

Postby marpon » May 22, 2019 7:58

hi aurel
nice if it works like that for you

in fact, i've decided to modify the csed from josé because i have used it on powerbasic (i've done first the translation to french)

after when switching to freebasic , i was not happy with the existing ides
so i modified csed for fb and made it multi_language too.

but one feature was not working well with the lexer was the '/ /' comments
because the lexer used internally the vb specifications without that feature
that why i've also modified the lexer, plus other additions for my new compiler meta commands

but good if you are happy with the one you use.

i'm still using csed_fb , i've tried the new one from Paul Squires, but fell more confortable with mine
even i know some little bugs, not too important to make me coding again in powerbasic.
aurelVZAB
Posts: 289
Joined: Jul 02, 2008 14:55
Location: Croatia
Contact:

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

Postby aurelVZAB » May 22, 2019 9:00

hi marpon
most of time i am using oxygenbasic as my main compiler,from time to time freebasic

there are lot of code editors you can use
i prefer simple solutions like this one , it is similar also with xBlitebasic editor.

marpon
you said ... coments
like this:
// comment

I have problem with my version with multiline comments or block comments
like this :

/* nnnnn
nnnnn
nnnnnn
*/


Do you maybe know why this not work even in old version of lexer 1.6.8.0 work
or is somehow modifyed ?
marpon
Posts: 342
Joined: Dec 28, 2012 13:31
Location: Paris - France

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

Postby marpon » May 22, 2019 11:01

like this :
/* nnnnn
nnnnn
nnnnnn
*/

yes it was what i wanted to explain ( confusing with the c++ synthax)

i do not think it still exists an official lexer fror freebasic doing that correctly
mine modified 4 years ago will work up to 6 nested levels.
I did the lexer c++ modifications at that time.

Another which works also, modified on poseidon ide, i even told Paul Squires , but not verified if he used it or not with his new ide.
I don't use it because the folding is too fuzzy for me.

in fact none of the lexers are identical, try to find the one that fits best your preferences
I know some come from bliztbasic , some from powerbasic , most from vb
all of them have pro and cons, specially with folding features, following indentation or not.

but as i understood you've changed the one from csed_fb because you said "every thing was red"
the reason was probably because you opened some file with lf not crlf , i know some .bi files on freebasic distribution are lf only.

that also the case if you get files from github and the configuration file of that github did not changed the default lf on txt, bas,bi,inc...
if you got that red (or sometimes green) try to change the lf to crlf on csed_fb with the "Edit/Conversion end of line" option
aurelVZAB
Posts: 289
Joined: Jul 02, 2008 14:55
Location: Croatia
Contact:

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

Postby aurelVZAB » May 22, 2019 13:00

hi marpon

ok ,if i understand block comment in your csed_fb version not work:

/* block comment
block...
block..
end block comment */

I even don't know is this valid block comment in freeBasic?

So i am wondering why?
Also only file with extension .bas is properly colored?
I can send you a link if you wish for my simple editor..let me know?
It can open any file and because syntax of oxygen and fb are very similar coloring work.
Also work this problematic block comment but on a strange way...chanaged font in black color only ???
badidea
Posts: 1545
Joined: May 24, 2007 22:10
Location: The Netherlands

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

Postby badidea » May 22, 2019 17:45

/'
FreeBASIC multi-line comment
'/
jj2007
Posts: 1242
Joined: Oct 23, 2016 15:28
Location: Roma, Italia
Contact:

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

Postby jj2007 » May 22, 2019 18:35

#if 0
FreeBASIC
multi-line
comment
#endif

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 56 guests