Oxygen Basic

Programming => Problems & Solutions => Topic started by: edcronos on June 02, 2018, 03:35:46 AM

Title: use editor to work with O2
Post by: edcronos on June 02, 2018, 03:35:46 AM
I was thinking of using Notepad ++ as the editor for O2, it seems easy to set up, and it has plenty of built-in editing and support tools

something that would be of help would be to be able to collect whole blocks
https://ivan-radic.github.io/udl-documentation/folding-in-code/

Is it something practical or would it be a waste of time?
Title: Re: use editor to work with O2
Post by: edcronos on June 02, 2018, 05:02:50 AM
probably not the appropriate
but would it be possible to use Notepad ++ or another code editor to work with O2?
it seems possible to create a syntax
also export the configuration XML, so the forum staff could improve
could be made an O2 document where everyone would participate by adding content or editing for better understanding

I know that my contribution would be small for my English google, and know almost nothing of programming
but we can not leave everything on top of Charles
Title: Re: use editor to work with O2
Post by: edcronos on June 02, 2018, 07:47:10 AM
at least one could say whether it is worth it or not

I'm starting a syntax setting


Modulo Sub Function Class Methods Method If Select Type

"End Modulo" "End Sub" "End Function" "End Class" "End Methods" "End Method" "End If" "End Select" "End Type"
Title: Re: use editor to work with O2
Post by: Mike Lobanovsky on June 02, 2018, 08:06:07 AM
Hi Eduardo,

Please don't cross-post in different threads. Cross-posting means asking one and the same question in several threads simultaneously.
Title: Re: use editor to work with O2
Post by: edcronos on June 02, 2018, 08:10:22 AM
Sorry, I thought I'd open this later.
Title: Re: use editor to work with O2
Post by: edcronos on June 02, 2018, 12:58:09 PM
I'm trying here, although I do not know the O2 functions, nor the notepad ++
it is necessary to verify the possibilities of notepad ++ and configure the formatting
Title: Re: use editor to work with O2
Post by: JRS on June 02, 2018, 01:48:59 PM
My suggestion is to use Ultra Edit.
Title: Re: use editor to work with O2
Post by: edcronos on June 02, 2018, 02:04:22 PM
I took a look and it really looks very good
but it's not free
and the proposal is something to be used with the O2 more comfortably until having an own ide
the syntax xml can be improved
  and created support macros
if it is possible to incorporate the O2 compiler can be practically an idea and create even something like the interactive tutorial, that when clicking key words if the example is executed
Title: Re: use editor to work with O2
Post by: Charles Pegge on June 02, 2018, 02:06:48 PM
Hi Eduardo,

This is inc\OxyKeywords.inc, updated.
Title: Re: use editor to work with O2
Post by: edcronos on June 02, 2018, 02:24:55 PM
Thanks, Charles.
but half I do not know, so I do not know in which category to put,
structure, command, function ...
nor its complementary example "if then else end if"
I'll add the ones I give.

but I'll try to look at the examples
but it is very easy to configure, the personnel can go putting the q know and the best xml file
At least the support functions are good and it makes it easier to manage the project.

maybe to go creating the tutorial of use to little on top of the own syntax of O2
if you have how to call the O2 compiler with a maybe macro to create an interactive tutorial
Title: Re: use editor to work with O2
Post by: JRS on June 02, 2018, 02:37:21 PM
Quote
I took a look and it really looks very good
but it's not free

Ultra Edit offer a 30 day full use trial. I pay $25 bucks every major upgrade that is licensed for 3 computers (Windows & Linux mix)

I would use the Oxygen Basic IDE without thinking before I would consider using Notepad or recreating the wheel.

What is your time worth?
Title: Re: use editor to work with O2
Post by: edcronos on June 02, 2018, 03:43:37 PM
I'm just curious
and the intention is to have something that anyone can download and use indefinitely


can someone tell if it is usable or not
Title: Re: use editor to work with O2
Post by: Mike Lobanovsky on June 02, 2018, 10:34:48 PM
I think it would be useful to have a syntax highlighting file that would paint

-- all BASIC keywords in bold dark blue/navy (Dim, Long, String, Sub, Function, For/To/Step/Next, If/Then/Else/End If, While/Wend, etc.)
-- all C-style and C-like keywords in bold light orange (char, int, float, sizeof, typeof, etc.)
-- all assembly keywords/mnemonics in bold red (add, jmp, ecx, rbx, shr, cmp, ret, etc.)
-- all preprocessor metastatements in bold dark grey/#808080 (#define, #include, #ifdef, #endif, #undef, #autodim, #lookahead, etc.)
-- all single-line and block comments in bold italicized green (/* it's a comment */, // it's a comment, ' it's a comment)
-- all strings in bold light brown/maroon ("it's a string").

And if the editor cannot support that many keyword groups and colors, or if it doesn't support several concurrent formats of comments and/or block comments, or if it doesn't support bold and/or italicized font concurrently with normal text, then go find another editor or develop one.
Title: Re: use editor to work with O2
Post by: JRS on June 02, 2018, 10:38:59 PM
Ultra Edit wouldn't have any problems with your request.

You could run O2 directly from Ultra Edit which has its own console output window. If also has an embedded JavaScript engine to automate tasks.
Title: Re: use editor to work with O2
Post by: Mike Lobanovsky on June 02, 2018, 11:11:17 PM
Yes John,

I've got Ultra Edit and it does support all those features I mentioned above, and many more of them into the bargain, e.g. user defined skinning/theming or plain text editing/formatting a-la MS Word. But I'd hardly dare advertise a commercial text/code editor on a Public Domain software forum. :)
Title: Re: use editor to work with O2
Post by: Charles Pegge on June 02, 2018, 11:16:34 PM
The latest Windows10 update (about 1 week ago) broke part of OxIde. It caused a WM_SIZE recursion when opening the project panel. This is now fixed in the OxygenBasicProgress package.
Title: Re: use editor to work with O2
Post by: JRS on June 02, 2018, 11:16:41 PM
Quote
But I'd hardly dare advertise a commercial text/code editor on a Public Domain software forum.

Open Source != FREE Software

Open Source means FREEdom to expand on the efforts of others without having to recreate the wheel. Contributions appreciated!

Quote
There are trillions of dollars worth of economic activity riding on top of the efforts of a relatively small community of people that often do this work without direct compensation.
Title: Re: use editor to work with O2
Post by: Mike Lobanovsky on June 02, 2018, 11:26:01 PM
It's nice to see you getting wiser and more tolerant to healthy commercialism, John. :)
Title: Re: use editor to work with O2
Post by: JRS on June 02, 2018, 11:29:12 PM
If you park your car on the street and don't put the OPEN sign in the window, does that still make it FREE?
Title: Re: use editor to work with O2
Post by: JRS on June 02, 2018, 11:43:14 PM
It's nice to see you getting wiser and more tolerant to healthy commercialism, John. :)

I have to pay my bills just like everyone else.
Title: Re: use editor to work with O2
Post by: edcronos on June 03, 2018, 03:01:03 AM
notepad ++ editor allows 8 groups of key words
some more options for collecting rows
other options for comments,
others for numbers, for operators

I got the notepad ++ yesterday, I do not know how to set it correctly yet, this was just a test
but the biggest difficulty for me is not knowing all those types that have in the O2 to separate by groups,
I get lost with a few lines of code, so I want to use notepad to organize things, so I create my own editor is impossible

I think the notepad ++ license is GPL
Title: Re: use editor to work with O2
Post by: JRS on June 03, 2018, 04:08:51 AM
What are your plans for the rest of your life?
Title: Re: use editor to work with O2
Post by: edcronos on June 03, 2018, 04:36:57 AM
I do not know the purpose of your question.
but considering that I do not know what will be the extension of my life, which may be until the end of today or last more 50 years, would not know how to respond correctly.
in a practical way to facilitate some things I do
learn English
learn a profitable profession here in Brazil, "only becoming a politician"
the dreams of life out of reality, would be
learn Korean, Japanese, and C language
I move from Brazil,
dreams that border on delirium
change Brazil,
meet a beautiful, intelligent woman and love me and marry her
Title: Re: use editor to work with O2
Post by: Mike Lobanovsky on June 03, 2018, 06:13:00 AM
Live long and prosper, Eduardo! :)

(http://support.pancan.org/images/friendraiser_uploads/1417.2017173665.custom.jpg)
Title: Re: use editor to work with O2
Post by: edcronos on June 03, 2018, 09:08:49 AM
I consider life as a cycle of amnesia and learning

I was seeing that there have already been attempts to use other editors,
such as SciTE
so it may be considered useless to use an external ide
I do not know this world of programming of yours,
and all I can do are attempts, even if frustrated

I will refrain from asking questions and proposals dumb
 and just watch the O2 walk
Title: Re: use editor to work with O2
Post by: Mike Lobanovsky on June 03, 2018, 09:43:24 AM
Eduardo, you are very close to a message count of 100! Do you mean to say you're going to give up everything like that? Come on, keep it up, man! :)
Title: Re: use editor to work with O2
Post by: edcronos on June 03, 2018, 10:11:06 AM
surely I am afraid to accept the truth, and simply ignoring the irony.
but what would be the use of increasing the number of "useless" messages?
I do not want to take Charles's time.
and I see that other active participants with much more experience and ability than I,
only try to induce the other options outside the O2 or out of the proposed, or with ironic comments
  this only confuses and inhibits those who try to participate
Doubts we all have, I already read some of your questions to Chales, and of course that for you the answers are something close to the obvious, while for others they generate more doubts
Title: Re: use editor to work with O2
Post by: jcfuller on June 03, 2018, 11:37:40 AM
I have used RadAsm3 for years with many different compilers and feel comfortable with it.
I have no desire to use or try anything other than what I am using now.

James

Title: Re: use editor to work with O2
Post by: Mike Lobanovsky on June 03, 2018, 02:48:21 PM
Eduardo, my messages bear no irony but only cheerfulness. I can be bitter at times but this time it's surely not the case. Cheer up, man!
Title: Re: use editor to work with O2
Post by: JRS on June 03, 2018, 09:13:37 PM
My point was you need to put a value on your time. If $25 gives you software that makes you a more efficient programmer, consider your options before proceeding.
Title: Re: use editor to work with O2
Post by: edcronos on June 03, 2018, 10:00:00 PM
John
the first point is that by what I saw on the page the license is $ 99.95
this converted plus taxes would give more than half of the minimum wage, from here in Brazil
 off the extra value for possible upgrades
second point, is that I am not a commercial programmer, so I do not make money from it,
third point is that the inefficiency is in me that I do not know anything programming, so the tool would only be a dead weight


jcfuller
my intention was not to change what people are already using,
some here included use paid tool, the intention was to have something available current and easy to confine by anyone,
 RadAsm3 for example I did not find the 3 to download, only the 2, the page is off the air, but it seems to be very good, although I did not know what to do in the 2 that I downloaded


but when trying to configure notepad ++ I realized how complex the O2 syntax is
dim ss as string
ss = string (6, "f")
some things I found inclussive I found the Chales exaggeration

Oxide Help is hiding keywords
the Redim for example only after clicking on Dim and who already knows the use will hardly click, I believe there are other hidden

Some things are confusing in my head because of the mix that has in the forum, for example, I thought I had module in O2 so I put it in the forum, but there is no "I think"
and yes block, scope,
Title: Re: use editor to work with O2
Post by: JRS on June 03, 2018, 10:11:04 PM
If you're on a budget, download Ultra Edit for FREE for 30 days and see how you like it. The price you quoted sounds like the suite. The UE editor alone is very affordable.
Title: Re: use editor to work with O2
Post by: JRS on June 03, 2018, 11:14:06 PM
Brazil's Neymar is like O2. Better at 80% than 99% of the players at 100%.
Title: Re: use editor to work with O2
Post by: edcronos on June 04, 2018, 08:29:06 AM
John
i assume that someone who visits and wants to test O2 will not want to download an editor that is paid
I even downloaded other editors, until I found O2RadAsm here in the forum, but I found it a bit complicated
I find others even GBL, with a lot of options that I do not know what they are for,
notepad ++ was the easiest to use and configure, at least in the basic options
I'm not doing propaganda,
the project is active, has 32 and 64 bit, has other utilities
has multiple languages
little,
easy to use, "even I got something first"
can be modified and incorporated into the project "this is what I understood"

until you have a beta version of O2 and someone is preparing to create an own Ide that accepts all syntax and has a certain functionality for programming can be an alternative
Title: Re: use editor to work with O2
Post by: edcronos on June 04, 2018, 09:13:40 AM
Notepad ++ tutorial compile code
http://docs.notepad-plus-plus.org/index.php/Compiling_Source_Code

in my case I'll just save the project as O2bas, why these things are still kind of advanced for me

but I'm still trying to configure the syntax, my biggest difficulty is the lack of programming knowledge
probably will not have how to have something complete and formatting all types separately, but my use will be limited
Title: Re: use editor to work with O2
Post by: JRS on June 04, 2018, 06:09:28 PM
I'm curious why the O2 IDE isn't working out for you at this stage of the compiler's development?
Title: Re: use editor to work with O2
Post by: edcronos on June 04, 2018, 06:49:04 PM
it works, but I get lost in what I'm doing with a few lines
and usually I mess up everything in the tests, and an auto indent helps at that point
the O2 in the stage that is, is probably already more than enough to mount the things I want, so I even want to try a more effective use
The funniest thing is for you to ask me this after trying to induce me to pay for an editor,


in the attempts, I finished a watercolor
I'm not good at color definition, and I use the monitor at minimum brightness
I tried some settings that would be basic, like setting default language, clearing huge lists of languages, but still could not configure.

but what I really wanted, and that will help me deal with O2 is the collection of lines, and the indent plugin
with time things work out
Title: Re: use editor to work with O2
Post by: Mike Lobanovsky on June 04, 2018, 09:59:11 PM
It seems the character back color in your syntax file isn't set correctly, Eduardo. I think it should be the same as the text background color in the main window.
Title: Re: use editor to work with O2
Post by: JRS on June 04, 2018, 11:18:44 PM
Quote
The funniest thing is for you to ask me this after trying to induce me to pay for an editor,

I'm like a whore. I want to know what your budget is first before talking about services.  ;D

Title: Re: use editor to work with O2
Post by: edcronos on June 05, 2018, 02:06:17 AM
It seems the character back color in your syntax file isn't set correctly, Eduardo. I think it should be the same as the text background color in the main window.

kkkk I had to increase the brightness of the monitor to see what you were talking about
in my use glow this background color looks black
Title: Re: use editor to work with O2
Post by: Mike Lobanovsky on June 05, 2018, 07:15:55 AM
Eduardo, the window background is definite brown while the character back color is black. I don't think there's anybody else on this forum who's likely to use such, er, unusual color combination in their editors.
Title: Re: use editor to work with O2
Post by: edcronos on June 05, 2018, 07:49:29 AM
is just a test, easily changed
but it seems that this version of notepad ++ is new, the themes do not match colors with the created template
I already changed the background colors of the texts, but it really is very bizarre this color scheme

I added a pluguin that passes the code to the default application, which in the case is the oxide
it would be nice to have a syntax change in the middle of the document, something using the comments with a keywords to define the following syntax and formatting

 unfortunately I am not able to separate the keywords or configure this properly
I do not think that a good soul appears to be able to configure notepad ++ for use in O2, so I will define something for personal use without much implementation

I was seeing that notepad ++ is quite used having several plugin developers
if you create an O2 configuration plugin and launch it may be something to catch the attention of the possible programmers,
but of course one's own may be better although it probably takes more time to develop
Title: Re: use editor to work with O2
Post by: JRS on June 05, 2018, 08:18:00 AM
There is a big difference between offering a language IDE and getting people to change the external editor they are comfortable with. As far as I'm concerned, this is O2T.
Title: Re: use editor to work with O2
Post by: Charles Pegge on June 05, 2018, 10:58:45 AM
I could make the OxIde colors configurable, if that would help.
Title: Re: use editor to work with O2
Post by: edcronos on June 05, 2018, 11:24:08 AM
John

I talked about the syntax, keywords and commands,
I believe that setting up an editor from scratch for much more work

the colors I set up was just a test as I said "kind of bizarre"
anyway notepad ++ does not seem to be prepared for so many possibilities yet and has mixed the colors of key words such as Do and Double

I will leave a simpler standard certainly,

the open source question is sometimes a bit strange,
I think everyone wants to be the father of the idea.

Charles
the colors may be of help to some people because of visual adaptability,
in VBE I use dark fudo, and my monitor is with minimum brightness
but I think what would even help would be the collection of lines and the automatic marker
collecting the line for something besides testing facilitates a lot in the organization

but do not worry about it now,
when O2 is in beta and some documentation is that these things will make a difference,
I can use notepad ++ the way it is
an advertisement here and there will certainly make people appear capable of these secondary tasks
Title: Re: use editor to work with O2
Post by: edcronos on June 05, 2018, 12:34:26 PM
I cleared my monitor more, I found where it marks global colors and I defined a bottom of screen with less contrast of the letters "I think"
O2 needs to have its own tools to fit all possible syntax

but the Folding in code helps a lot, so I'll have to wait to put the end if in all if'',

missing some words used in O2, and some adjustments, but I'll have to go slowly, because I do not even know which ones
Title: Re: use editor to work with O2
Post by: edcronos on June 05, 2018, 01:21:11 PM
in terms of compilers
I know it's not the O2 proposition
but it would be a good advertisement to mount speed tests between VB C and O2



Title: Re: use editor to work with O2
Post by: JRS on June 05, 2018, 02:35:36 PM
O2 and C are close. VB6 is a pcode based runtime executable and isn't in the same ballpark.
Title: Re: use editor to work with O2
Post by: edcronos on June 05, 2018, 05:43:12 PM
John
I told to have publicity.
who would take O2 as a base?
other Basic users,
but what would be their motive, as well as beginners and other programmers?
then one has to put a comparative and show the flexibility
Title: Re: use editor to work with O2
Post by: JRS on June 05, 2018, 09:29:28 PM
I'm trying to merge Script BASIC with O2 in my spare time. Sorry if your Notepad paint job project doesn't excite me.
Title: Re: use editor to work with O2
Post by: edcronos on June 06, 2018, 04:32:01 AM
John
first I do not have a notepad project
I intend to use more comfortable O2,
I downloaded others to test, but for me the notepad was the easiest to set up and use, maybe it's far from ideal
you've already paid for a more efficient tool, so of course you will not get excited about a free hammer.
Title: Re: use editor to work with O2
Post by: JRS on June 06, 2018, 05:29:15 AM
The O2 community is small and most members are of a senior skill level and already have established tools they are comfortable with cost aside.
Title: Re: use editor to work with O2
Post by: edcronos on June 06, 2018, 05:49:31 AM
and apparently a closed community that tries to inhibit any unclassified participation
John, his focus is on Script BASIC, and O2 is just a tool
the only one that tries to answer doubts effectively is Charles
there is no exchange of ideas and help in the O2 forum for O2,
apparently it is Charles for all, but each one for himself

I have many doubts, and as you may have noticed, I know very little about programming
but as I know that the people who attend the forum will not help me better be quiet so as not to induce Charles to take his time with small matters
Title: Re: use editor to work with O2
Post by: Mike Lobanovsky on June 06, 2018, 09:39:08 AM
Eduardo,

This forum is for exchanging technical information by describing problems and offering solutions. If you have nothing technical to offer or ask for help in, then please abstain from posting here. So far we have learnt that:There is no technical information in any of those three items.
Period.

If you want to discuss VB/C/O2 speed tests then open another topic on an appropriate board. If you have "small matters" to discuss with Charles or anyone else, open separate topics for each one of the "small matters" and be patient to wait for the answers, if any. This forum is not for blog-posting one's world outlook or book of life. This is an applied programming forum.
Title: Re: use editor to work with O2
Post by: edcronos on June 06, 2018, 10:13:39 AM
Mike Lobanovsky
point 1 was to expose my lack of completeness in very technical terms, and probably of many who visit the forum, but wish to know the O2
point 2 was just an observation of my failure.
point 3 is not valid, I'm using notepad ++ to edit, and setting the settings, and calling his oxide,
not everyone has their ability to deal with programming or has tools already prepared for it, and from what I know editors and ide are important aids in programming even assisting in learning


Quote
"If you have" small matters "to discuss with Charles or anyone else, open separate topics for each one of the" small matters "and be patient to wait for the answers, if any. outlook or book of life. "

whenever someone asks about the O2 appears answers and examples with the Script BASIC or other,
 this creates confusion, when I accessed the forum the first time I tested many examples of Script BASIC thinking if it deals with O2

I have technical questions,
 such as headers assemblies,
creation of and use of include,
about the structures and organization, that from what I understand you can not put anything anywhere

but as far as I understand it has to be a professional programmer
Title: Re: use editor to work with O2
Post by: Mike Lobanovsky on June 06, 2018, 10:23:30 AM
Quote
I have technical questions,
 such as headers assemblies,
creation of and use of include,
about the structures and organization, that from what I understand you can not put anything anywhere

I said, "open separate topics for each one of the "small matters" and be patient to wait for the answers, if any".

Quote
as far as I understand it has to be a professional programmer

There was no "professional programmer" in my message. There was "applied programming" which means "practical coding". What is there that can be classified as "practical" in this entire thread?

Quote
whenever someone asks about the O2 appears answers and examples with the Script BASIC or other

Your statement is FALSE. Supply sufficient proof here immediately or I will call you a liar and ban from this forum.
Title: Re: use editor to work with O2
Post by: JRS on June 06, 2018, 10:40:48 AM
There is the JRS forum. You might have more sucess working with ChrisC. I think there is a forum  board for the clueless.
Title: Re: use editor to work with O2
Post by: edcronos on June 06, 2018, 11:09:28 AM

Quote
Your statement is FALSE. Supply sufficient proof here immediately or I will call you a liar and ban from this forum.

as half the truth does not cancel half the lie, I believe that you are entitled to take the action that suits you.
this also benefits me, preventing me from continuing with this shameful exposure