3rd part code editors for xojo code?

Hi all,

while I appreciate the IDE, my preference is to use 3rd party code editors such as VS Code or Sublime Text, not in the least because of split window functionality and a ton of conveniences that don’t exist in the IDE editor (eg clinic on a variable highlights all instances of that variable in the script etc.).

I don’t necessarily need this to directly integrate with Xojo but it would be nice to have a colorizer/formatter/linter/syntax checker - but as far as I can see this does not seem possible.

I do this with LiveCode, and I don’t see why it can’t be done with Xojo?

To integrate you need a command line compiler… Xojo can’t be used in that way.

There is a language module for BBEdit if you’re on a mac. It’s made by @Tim_Parnell and can be found at GitHub - devtimi/BBEdit-Xojo: BBEdit Codeless Language Module syntax highlighter for Xojo Code

No integration with the ide though

3 Likes

@Dirk_Cleenwerck thank you, that was the kind of thing I was looking for… inasmuch as it colourises text, but there doesn’t seem to be any auto-formatting or features like code folding, which I do get with other similar-ish platforms like LiveCode (for which there are extensions to do all of the above, even in BBEdit).

By “integration” I was thinking of more reloading class files (text files) live in the IDE after editing externally, rather than than running a command line compiler… but I guess that there is no need or provision for that (?).

Personally I sometimes prefer to view whole code in one go instead of clicking into pockets of code (like multiple methods in a class), but the XOJO code editor doesn’t deal with multiple selections…

  1. Save your project to XML (check if that format pleased you)

  2. or Print your project to PDF

    No selected Object in the Navigator or you will get only that Object code)
    Use Cmd-Click in the selected Object to remove the selection.

(eg click on a variable highlights all instances of that variable in the script etc.).

If I understand what you are saying, this already exists in the current version of the Xojo IDE. Double-click on the name of a variable to “select” it, and the other occurrences in the code will be highlighted.

1 Like

Are you aware of the Arbed program?

This has an editor that is a bit more capable

1 Like

Thanks both.

I don’t have anything against the XOJO code editor; Arbed looks interesting, will check it out.

However it seems a pity I can’t use advanced general code editors I use for other stuff…

1 Like

I like the idea of Arbed but it’s not that useful for my purposes - keeping in mind the point was to view all code in one place, this seems to just reproduce all aspects of the IDE with both properties and code and everything else. This means I have to navigate as much as I would the IDE.

I’m sure offers other features but it’s not helpful for code review…

In addition it raised multiple exceptions (10+) on loading my project file (a web app using DBKit saved in text format), such as:

Pity…

This has been a very long standing request. Don’t have the Issues # handy but it’s at least 10 years old. Feel free to create a new one though and maybe the powers that be will see the advantage of it. But don’t hold your breath.

1 Like

Text format is not supported.

Xojo is not for those spoilded with other IDEs.

It lacks even the basic “close proyect“ feature. If you make an external change, you have to close the IDE and reload the whole proyect.

By the way, acording to xojo, any change outside the IDE could lead to corruption.

It doesn’t, someone at Xojo just isn’t capable of handling “closing the last tab closes the window” like every web browser behaves.

It’s a separate menu item and you have to set a separate key command for it.

2 Likes

The IDE does not recognize changes If you manually edit the project files externally. If you want to force Xojo to reload the changes you made, just select “revert to saved” in the IDE. If it is grayed out, just edit something.

Changes can be made outside of the IDE without corruption but it is unsupported and you do it at your own risk.

Thanks, I had this turned off apparently. It’s “Display selection matches” in the Coding tab of the settings.

code folding

It has code folding within a method, but there isn’t a broader view in which you can view multiple methods in the same editor.

Personally I sometimes prefer to view whole code in one go instead of clicking into pockets of code (like multiple methods in a class)

I realize this isn’t what you want, but just in case you don’t know, you can open the same project in multiple windows (New Workspace in the File menu) and thus see multiple methods at the same time. You can also right-click on methods/etc, choose “Open [whatever] in New Tab”, and then drag your tabs out to new windows.

long ago i configured Notepad++ for other dev tool.

xojo save a bit more than the ide show in source editor, saved in xojo_project could be fine.

i would not edit the project files extern if the xojo ide have open this project.

if you need a overview write a small app that put all xojo_project files into one.

for orientation and jumping in the xojo ide the bookmarks are ok and #Pragma Warning “ToDo“

Just as a follow up to my original question - I pretty much get what I was asking for by using VS Code and setting its parser to 'Visual Basic’ (I only wanted it to look nice so I could concentrate all code there before testing in xojo - I personally find the splitting of code into multiple tiny parcels difficult).

Of course the ideal for me would be to be able to do this in xojo directly, i.e. that within it’s current format of splitting the code into tiny parcels it would also give you a view where all events, properties and methods for a class were on a single sheet (the parent object or class) to give better idea of the whole, and editing this would update all the little parcels in the IDE, but I realise that’s not realistic at present. This is the next best thing for my needs…