IUP_FB_EDITOR (simple development environment)

User projects written in or related to FreeBASIC.
Makoto WATANABE
Posts: 192
Joined: Apr 10, 2010 11:41
Location: Japan
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Postby Makoto WATANABE » May 06, 2020 10:48

Dear VANYA;

I am selecting "Mixed" for "Code Case Keywords".
On IUP_FB_EDITOR's screen display, it looks like I expected.
Image

However, the saved file has keywords in lowercase or uppercase.
Image

I want the first letter of the keyword to be uppercase and the second and subsequent letters to be lowercase.
Thank you for your consideration.
systemctl
Posts: 182
Joined: Mar 27, 2020 5:15

Re: IUP_FB_EDITOR (simple development environment)

Postby systemctl » May 06, 2020 15:37

Makoto WATANABE wrote:I want the first letter of the keyword to be uppercase and the second and subsequent letters to be lowercase.


Indeed this is called upper camel case (also called Pascal case). I prefer the lower camel case like Java, though.
VANYA
Posts: 1372
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Postby VANYA » May 06, 2020 17:16

Hi all!

Makoto_WATANABE wrote:However, the saved file has keywords in lowercase or uppercase.


Scintilla does not offer this feature:

https://scintilla.org/ScintillaDoc.html
The value of caseVisible determines how text is displayed. You can set upper case (SC_CASE_UPPER, 1) or lower case (SC_CASE_LOWER, 2) or camel case (SC_CASE_CAMEL, 3) or display normally (SC_CASE_MIXED, 0). This does not change the stored text, only how it is displayed.


And I don't see a good way to solve this problem. The point is not only to save the files, there is still copying the text to the clipboard, or maybe something else.

Thanks for translating the file. If you have time, please also look at the zJP.cfg file in the lang/plug/ folder
Makoto WATANABE
Posts: 192
Joined: Apr 10, 2010 11:41
Location: Japan
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Postby Makoto WATANABE » May 07, 2020 2:41

Dear VANYA;

Thanks for your quick reply.

1.
>there is still copying the text to the clipboard

Strangely, even though it looks like "Mixed" on the screen, when I copy it to the clipboard, it becomes uppercase or lowercase, just like when I saved the file.

2.
>please also look at the zJP.cfg file in the lang/plug/ folder

I updated it with minor modifications.
http://makoto-watanabe.main.jp/zJPplug.cfg

3.
3.1.
plug_bplblcolumn=Index of the column

To insert a character at the beginning, I think the index is 1, but now I need to specify 0.
Is this expected behavior?

3.2.
plug_bpcheck=only in this column
plug_bpcheckaddspace=pad a column with spaces

Please teach me how to use these.

4.
Edit->Operations with Spaces->Trim Spaces in trailing

Spaces are not removed. Please check .
VANYA
Posts: 1372
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Postby VANYA » May 07, 2020 7:44

Hi Makoto WATANABE!

Makoto WATANABE wrote:Strangely, even though it looks like "Mixed" on the screen, when I copy it to the clipboard, it becomes uppercase or lowercase, just like when I saved the file.


so I’m talking about this. The problem is not only in saving files, but also in copying text to the clipboard. Scintilla makes it impossible to get format_text(UPPER|LOWER|MIXED) and I don’t know a good way to do this.

Makoto WATANABE wrote:I updated it with minor modifications.


Thank you!

Makoto WATANABE wrote:To insert a character at the beginning, I think the index is 1, but now I need to specify 0.
Is this expected behavior?


In the editor, the countdown starts from the zero column and from the first row. Place the cursor in the editor at the very beginning and look in the lower left corner.

Makoto WATANABE wrote:Please teach me how to use these.


https://yadi.sk/i/LDjC4SbnBrug-g

Makoto WATANABE wrote:Edit->Operations with Spaces->Trim Spaces in trailing
Spaces are not removed. Please check .


Yes, this bug, thank you!
Makoto WATANABE
Posts: 192
Joined: Apr 10, 2010 11:41
Location: Japan
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Postby Makoto WATANABE » May 07, 2020 10:24

Dear VANYA;

Thanks for your quick reply.
I updated the zJPplug.cfg.
http://makoto-watanabe.main.jp/zJPplug.cfg

I would like to translate your following page into Japanese and introduce IUP_FB_EDITOR to Japanese people.
Info: https://iupfbeditor.sourceforge.io/
Please consent to this.
VANYA
Posts: 1372
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Postby VANYA » May 08, 2020 3:33

Hi Makoto WATANABE!

Makoto WATANABE wrote:Dear VANYA;

Thanks for your quick reply.
I updated the zJPplug.cfg.


thanks.

Makoto WATANABE wrote:I would like to translate your following page into Japanese and introduce IUP_FB_EDITOR to Japanese people.
Info: https://iupfbeditor.sourceforge.io/
Please consent to this.


Of course, just please add your name there as a translator
WQ1980
Posts: 47
Joined: Sep 25, 2015 12:04
Location: Russia

Re: IUP_FB_EDITOR (simple development environment)

Postby WQ1980 » May 08, 2020 12:19

Makoto WATANABE wrote:Dear VANYA;
I want the first letter of the keyword to be uppercase and the second and subsequent letters to be lowercase.
Thank you for your consideration.


In IUP_FB_EDITOR+ (fork of IUP_FB_EDITOR, viewtopic.php?f=8&t=28375)


In file \keywords\autocase_list
List of keywords with the required case

"Settings" -> "Editor" -> "Code case keywords" set "No change" and "Autocase words"

Main menu -> Edit -> Autocase text
Сhanges keywords to words from a file autocase_list
Makoto WATANABE
Posts: 192
Joined: Apr 10, 2010 11:41
Location: Japan
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Postby Makoto WATANABE » May 10, 2020 1:01

Dear VANYA;

I'm sorry for the trivial thing.
In a comment, if it starts with an asterisk, it won't be the color I set in the comment.
Image

Is this a specification?
VANYA
Posts: 1372
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Postby VANYA » May 10, 2020 7:47

Makoto WATANABE wrote:Dear VANYA;

I'm sorry for the trivial thing.
In a comment, if it starts with an asterisk, it won't be the color I set in the comment.

Is this a specification?


Hi Makoto WATANABE! Part of the Scintilla library (lexer written in C++ ) is responsible for this functionality. I am not so strong in C++ to make such changes.
Kuan Hsu
Posts: 470
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: IUP_FB_EDITOR (simple development environment)

Postby Kuan Hsu » May 10, 2020 16:03

Makoto WATANABE wrote:Dear VANYA;

I'm sorry for the trivial thing.
In a comment, if it starts with an asterisk, it won't be the color I set in the comment.
Image

Is this a specification?

If you use 32bits IUP_FB_EDITOR, try using poseidonFB's iup_scintilla.dll to replace same one of IUP_FB_EDITOR.
Makoto WATANABE
Posts: 192
Joined: Apr 10, 2010 11:41
Location: Japan
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Postby Makoto WATANABE » May 12, 2020 2:00

Dear Kuan Hsu;

Thanks for your advice.
All comment lines in the source have been set to the color for comments.
IUP_FB_Editor+ - fork of IUP_FB_Editor had the same effect.
Image

Thank you very much.

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 3 guests