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

User projects written in or related to FreeBASIC.
frisian
Posts: 249
Joined: Oct 08, 2009 17:25

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

Postby frisian » Dec 19, 2013 19:52

colors & fonts
I will try to clarify some issue with colors & fonts
1. I start the editor, all colors and fonts are as I want them to be.
2. I decide to change a color say the background color of the comment's.
3. I open the colors & fonts window.
4. It opens showing the fore and background color for default they are both white but when i closed them the foreground color was white and the background color was black.
3. I ignore this (for now) and go to the setting for comments I change the background color and click on the apply button.
4. What happens is that the background color for comments is changed into the set color AND ALSO THE DEFAULT BACKGROUND COLOR IS SET TO WHITE.
5. If I understand what you wrote about the apply button this should not be happening.
After this first time the apply button works as you described it.

So there a two thing every time I open the colors & fonts window the default background color is changed. I need to set it every time to the color I want. When the apply button is used the first time it seem not to work as it should.
marpon wrote:Compiler Results
I think -v has to be used if you ask for log , if not you can miss information if something wrong !
you can skip the dialog with the option (not when error) , but to get 1 dialog just to see its ok ???
what difference with the complete log file : only 1 click to do

The things is that when the file gets compiled success full I do not need to see all the information regarding the compiling process only a short message like "MAKE DONE" or simply "OK" would be enough. If something go wrong then you get automatically a output with error messages. The -v option gives more information about what compiler is doing. When all goes well I find that information useless.
marpon wrote:Nota: no remarks on the lynx tool for projects ?

I haven't done much computing the last week but i have played with it and found a few things
I have collected them in a litte bas file.
[code file=LYNX_1]' LYNX process this things incorrectly
/'
dim as byte arr(0 to 7) = {1, 2, 4, 8, 16, 32, 64, 128}

dim as byte arr2()

redim arr2(100)

arr2(1) = 1
arr2(2) = 2

ReDim Preserve arr2(2)

'/

type str1 as string ' has no END TYPE lynx can't handle it
dim q as integer
dim as integer q1
q = 1
q1 = 10
q = q + q1
print q

sleep
end[/code]
1. LYNX processes a comment block
A comment block does not need to processed it is not included in the code so information gained from it is worthless.
2. LYNX processes data. (get confused by {}).
In dim as byte arr(0 to 7) = {1, 2, 4, 8, 16, 32, 64, 128}, {1, 2, 4, 8, 16, 32, 64, 128} is just data for the array arr(). (arr(0) = 1, arr(1)=2, ... arr(7)=128).
3. LYNX has trouble with REDIM.
It show the array name with a red diamond it should ignore array names that are REDIMed.
4. LYNX get confused by a single line defined TYPE.
It is possible for FB to have a single line defined TYPE without a END TYPE.
LYNX processes all the lines to the END statement as if the where part of the TYPE definition.

That all for now. If you need more information let me know.
Regards
Kwabbernoot
Posts: 73
Joined: Apr 19, 2010 18:23
Location: NL

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

Postby Kwabbernoot » Dec 19, 2013 20:07

marpon wrote:The margin color is not plain color , it is a color with black matrix ( as scintilla component is defined)

That means??


marpon wrote:folding
yes the folding is dependent of the indentation you have put ( done in the scilexer.dll )
but you are helped by the auto indentation and the format entire file

I get the impression that you 're not taking me seriously. There is nothing wrong with the folding itself, the only problem is that sometimes the folding symbol is missing (for subs and functions). If you click on the place where the symbol should be, the folding and unfolding works correctly.
marpon
Posts: 338
Joined: Dec 28, 2012 13:31
Location: Paris - France

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

Postby marpon » Dec 20, 2013 11:06

@ Kwabbernoot

margin color : as i said black matrix so it is blend color ! not plain color.

folding : it is not shown because the indentation is wrong !
use the format file, it will place the indentation correctly and you can see the folding symbol.
I take you seriously, i've made the test with the link you send me to show that bug ,
i have seen the symptom you explain, but the indentation was fuzzy , i put the right indentation
and after format every thing is correct ( not the code because the : ) ()

I respect everybody , you are using your time to give your feedback ... for me it is a win-win attitude

@ frisian

color options
thanks for the description, i never used with black background with white foreground , is seems it is something related to that configuration, i'll investigate...

-v option : i will see the code implications

lynx
thanks for the fist remarks :
my concern was to have a tool for project management ( as fbedit ) to find the function/sub in other files not more, but i use with powerbasic that lynx tool and it seems able to fit that simple need and more
I already have spend days , just to adapt to freebasic variables dim, dim shared ...
I think to rewrite it to fit completely the freebasic syntax , assigment , variable scope, comment blocks ... it is too heavy (almost the same as an editor ) and not justified for my needs
2 choices for me : stay as it is ( some possible adjustments)
or drastically simplify it just for functions/sub as fbedit , i still don't know !
marpon
Posts: 338
Joined: Dec 28, 2012 13:31
Location: Paris - France

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

Postby marpon » Mar 24, 2014 9:33

New evolution: 1.0.6.6 same link :
http://www.freebasic-portal.de/download ... c-259.html


removed bugs :
on color options
on selecting all
formatting code
...


new feature : history of actions

if in compiler options you decide not display compiler results :
no window if no error , but the history shows compile/link ok !
frisian
Posts: 249
Joined: Oct 08, 2009 17:25

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

Postby frisian » Apr 07, 2014 19:10

marpon

Just a short posting to let you know that I have downloaded your newest version and had a quick look. It looks that you have managed to correct most of the problems.
marpon
Posts: 338
Joined: Dec 28, 2012 13:31
Location: Paris - France

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

Postby marpon » Sep 30, 2014 16:50

New evolution, same link

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

solved some bugs in the reformating code function (beautify)
and few other...
frisian
Posts: 249
Joined: Oct 08, 2009 17:25

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

Postby frisian » Oct 07, 2014 16:22

@marpon

New version looks good, I have found some small things.

Image
When I select text it displays the total of selected characters (looks like it can't see the rest), but the display is cut off by means of a separator, while the rest of the line is unused. Simple remove the separator or move it to the right.

Image
For tab size and indent size the black line that should be at the left side is reduced to a few black dots, when selecting a new value it shows up. Seems to me that the digits are to far to the left that causes the partial erasing of the line.

Image
Left before and right after a source code format.

Picture gets trimmed by webpage/something else, if you save the image it should be all there. (first time I include pictures).

1:
I use the option "comment block has same color as comment", the comment block has the same color as the comment line but not the font options (bold/italic/underlined) of the comment line.
When I uncheck the option "comment block has same color as comment" then the comment block defaults to some default color I can't alter.
Option "comment block has same color as comment" is checked comment and comment block are equal, unchecked comment block has it own setting (color and font).

2:
When there is an bracket after TO the code formatter remove the space(s) between the TO and the bracket.

3:
I prefer a space on both sides of the :. (Something from the early days of BASIC).
But I can live with it.

4:
The @ should be red just like the *.

5:
Since the * has a double function it is hard to figure out when to place a space or not.
Only a pointer can appear at the beginning of a line, also when there is a (= - + / \ <> etc) followed by a * then whats follows is a pointer.

6:
Something weird when I have x*4 no spaces are placed on both sides of the *.
When there are spaces around the * then they are reduced to one on each side as one would expect.

A other issue is the fact when the selected case for the editor is lowercase everything get changed to lower case even the characters in a string. But strings should be excluded from this. It can lead to confusion if got statements like if inkey = "A" then start to look like if inkey = "a" then .
The case of character inside a string ("") should be ignored.

My personal view is that text in comment lines and comment block also should be left as the are.
(I make comment block of code when I inserting new code to replace older code).

Regards
marpon
Posts: 338
Joined: Dec 28, 2012 13:31
Location: Paris - France

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

Postby marpon » Mar 09, 2015 9:47

New version : 1.0.6.9

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

Some new keywords to simplify the life when compiling
new toolbar button/menu Compile to lib
more settings for compilation options
check if gui option allowed(checking sleep)

see the extra features on .Chm file

some bugs fixed...
Kwabbernoot
Posts: 73
Joined: Apr 19, 2010 18:23
Location: NL

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

Postby Kwabbernoot » Mar 09, 2015 16:02

Thanks, Marpon. I am still using this very good editor.
You didn't include the Dutch translation, file: Nederlands.lng
I only copied files: CSED_FB.exe and CSED_FB.chm. Is that all I need?
What exactly are the changes? I see no difference.
marpon
Posts: 338
Joined: Dec 28, 2012 13:31
Location: Paris - France

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

Postby marpon » Mar 10, 2015 13:46

CSED_FB.exe and CSED_FB.chm. Is that all I need?

yes, if you have the previous version, but normaly you can copy the complete structure over existing one
just take care of your extensions on keywords files , normaly that's all


as I said :
new compile to Lib menu/button
new keywords
more settings for compilation
checking sleep orphan in gui target
less fuzzy , priority level options / menu / button

new also
integration the last firefly evolution / better cooperation
preparing my extention of that great rad

bugg fixed( and better internal structure, easier to manage)
integer
Posts: 378
Joined: Feb 01, 2007 16:54
Location: usa

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

Postby integer » Mar 11, 2015 2:01

Just trying it out.
Keyed in a simple program: "count1.bas"
Saved it.
Exited program CSED.

Restarted CSED
opened "count1.bas"
touched the F5 key.
program ran ok -- except output, not in desired form.
Control-c, aborted the program.
edit change.

F5
"compilation stopped:"
"count1.bas" already running.
Tried a bunch of ideas, but could not get around the already running program.

I looked through the help file, but could find nothing under "stop; edit; re-compile"
My question, how do I terminate the current running program, so that I can edit it and re-run it?
Is it necessary to shut down CSED to kill the running program and then restart?

[edit]
Exiting/quitting CSED did not kill the running program.
I used the Crtl-Alt-Del keys and terminated the running program.
marpon
Posts: 338
Joined: Dec 28, 2012 13:31
Location: Paris - France

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

Postby marpon » Mar 11, 2015 8:40

@integer

program ran ok -- except output, not in desired form.
Control-c, aborted the program.
edit change.

F5
"compilation stopped:"
"count1.bas" already running.
Tried a bunch of ideas, but could not get around the already running program.


I don't understand , when you said "Control-c, aborted the program ", how do you know the program was stopped ?
because obviously the program was still running , csed have detected it when you try to compile again
and you also , as you said "I used the Crtl-Alt-Del keys and terminated the running program"

My understanding is the following :
your program was running , control-c did not aborted "totaly" the program , why ? check your code
and obviouly csed cannot compile again because it cannot modify the running exe , that why you get the warning.

You should , let csed open , "Crtl-Alt-Del" to the process manager , terminate the prog and check again your code, something is wrong.

Is it necessary to shut down CSED to kill the running program and then restart?

No need to shut down Csed
and Not: as other editor ( i think), csed does not terminate the launched running prog, why should it do it ?
It does not know what is your intention : it is up to you to decide to stop or continue running...

Could you post the source code, i can check myself
( was it on gui mode or console mode ,and wich version of csed ?)
integer
Posts: 378
Joined: Feb 01, 2007 16:54
Location: usa

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

Postby integer » Mar 11, 2015 10:24

original version

Code: Select all

dim as integer i
for i= 1 to 1000
   print using"###,###.###";i
   sleep
next i


edited version

Code: Select all

dim as integer i
for i= 1 to 1000
   print using"#,###.#";i
   sleep
next i


The real question is: Once the program is running, how can it be stopped early?

how do you know the program was stopped ?

From standard basic use, a Control-C, always terminated the running program.
Since it failed to stop the running program, but it returned me to the editor.
How can I stop the program.
From your question, I have not idea the program is running and can find no way to end it.

The only way I could find, is to exit CSED, open the control panel with "CTL-ALT-DEL" and terminate it.

How should the running program be stopped before it completes the task?
The reason I abort the program early is to avoid having a progam that is an endless loop, which never terminates.

What is CSED's method to abort a program after "compile and execute" ?
marpon
Posts: 338
Joined: Dec 28, 2012 13:31
Location: Paris - France

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

Postby marpon » Mar 11, 2015 11:38

@integer

your prog has to be compile with -s console because print and sleep without time value

if you compiled it with -s gui it's normal it never terminates until you do Crtl-Alt-Del keys

it is your code and your parameters to compile to make it like that.


But in -s console option ( or without -s gui ) the program print and wait as expected
and if you stop it with control-c (or clicking the close console window) it terminates normaly
( i checked in XP , but i think same on the others)


Nothing to do with CSED, just normal behaviour according your code and compiling parameters.
test under other ide , it will be the same with the same code and same parameter...

It is that kind of bad coding on -s gui mode , the last version track by checking the orphan sleep to avoid that bad coding


be sure to use the last version i posted , if not install it , you will never have that possibily after

What is CSED's method to abort a program after "compile and execute" ?

what kind of method do you suggest ? have you found that kind of option in other code editor ?
marpon
Posts: 338
Joined: Dec 28, 2012 13:31
Location: Paris - France

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

Postby marpon » Apr 21, 2015 16:03

New version : 1.0.7.0

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

introducing _:[CSED_xxx]: keyword format ,
replacing the #define Compile... keywords (but still working)

options to generate optimized / cleaned source code

To update existing installation :
Replace the 3 existing files by the updated
- CSED_FB.chm this file
- CSED_FB.exe the executable file
- SciLexer.dll the adapted lexer file

For new installation copy the entire content structure of Rar file where you want.

see the extra features on .Chm file

some bugs fixed...

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 9 guests