BBEdit Syntax Highlighting for Xojo Code

Hi everyone, Happy Friday!

I just wanted to share with you all something I created today. What started as an attempt to write my own ReformatCode.xojo_script ended up turning into an adventure to make a Language Module for BBEdit instead.

I present to you, my BBEdit Language Module for Xojo code!

I hope someone out there finds it useful :slight_smile:
Happy coding!

Best wishes,
Tim Parnell

20 Likes

Well thanks for that. The weird thing is, I happened to update BBEdit on one of the machines here only a couple of days ago - and wondered then about it recognising Xojo syntax.

How does one change the colours for things - such as comments?

It will use your general settings for coloring :slight_smile:

:+1:

This is fantastic! Thank you Tim.

1 Like

Thanks. This just works.

  • Download xojo.plist from GitHub, e.g. by using Code button and picking Zip Archiv to download everything.
  • Unpack zip archive.
  • Select the BBEdit Application menu
  • Select the Folders submenu
  • Select Language Modules to open the Language Modules folder
  • Copy xojo.plist into the Language Modules folder
  • Quit and Relaunch BBEdit
  • Open a Xojo code file and enjoy.
1 Like

I don’t use BBexit very much with Xojo code, but from time to time it’s useful when looking for something. Now I just need to tune its colours to match what I have in the IDE.

It started as an attempt to write my own ReformatCode.xojo_script. It was recommended to me that I write it with BBEdit… and then I got distracted.

Neat thing I forgot to mention in the original post, it finds Functions and Subs for the function navigator:

Screen Shot 2023-11-04 at 10.32.14

3 Likes

I just had my first opportunity to use this new BBEdit Language Module and it looks great! Fabulous job @Tim_Parnell and I’m sure I’ll continue to appreciate this well into the future.

1 Like

Thank you Tim, I was curious ans instal your module as explained. I bought BBedit some years ago but I’m not very good using it.
I create a new text file and copy code from Xojo and paste it in the text file. The text is black as a normal document. I suppose I have to tell BBedit it is Xojo code ?

When you paste code you must tell BBEdit it is xojo code.

If you open a .xojo_code file, BBEdit will automatically apply xojo syntax highlighting.

2 Likes

There is the popup at the bottom of the window.

2 Likes

Eureka, thank you TimStreater, I never saw this menu. BBedit detect my HTML automatically and as I use Bbedit for normal text file or Html, I never need this menu.
Thank you again Tim and Tim.