Author Topic: use editor to work with O2  (Read 7778 times)

0 Members and 2 Guests are viewing this topic.

edcronos

  • Guest
use editor to work with O2
« 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?
« Last Edit: June 02, 2018, 03:55:21 AM by edcronos »

edcronos

  • Guest
Re: use editor to work with O2
« Reply #1 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

edcronos

  • Guest
Re: use editor to work with O2
« Reply #2 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"

Mike Lobanovsky

  • Guest
Re: use editor to work with O2
« Reply #3 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.

edcronos

  • Guest
Re: use editor to work with O2
« Reply #4 on: June 02, 2018, 08:10:22 AM »
Sorry, I thought I'd open this later.

edcronos

  • Guest
Re: use editor to work with O2
« Reply #5 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

JRS

  • Guest
Re: use editor to work with O2
« Reply #6 on: June 02, 2018, 01:48:59 PM »
My suggestion is to use Ultra Edit.

edcronos

  • Guest
Re: use editor to work with O2
« Reply #7 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

Charles Pegge

  • Guest
Re: use editor to work with O2
« Reply #8 on: June 02, 2018, 02:06:48 PM »
Hi Eduardo,

This is inc\OxyKeywords.inc, updated.

edcronos

  • Guest
Re: use editor to work with O2
« Reply #9 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

JRS

  • Guest
Re: use editor to work with O2
« Reply #10 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?
« Last Edit: June 02, 2018, 10:10:14 PM by John »

edcronos

  • Guest
Re: use editor to work with O2
« Reply #11 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

Mike Lobanovsky

  • Guest
Re: use editor to work with O2
« Reply #12 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.

JRS

  • Guest
Re: use editor to work with O2
« Reply #13 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.
« Last Edit: June 02, 2018, 10:59:41 PM by John »

Mike Lobanovsky

  • Guest
Re: use editor to work with O2
« Reply #14 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. :)