Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview

Buy Now

Issue 20.2 ('Colorominoes')
Instant purchase and download via GumRoad!


Stuck in Quarantine

Fixing Xojo's Quarantine Issue

Issue: 20.2 (March/April 2022)
Author: Marc Zeedar
Author Bio: Marc taught himself programming in high school when he bought his first computer but had no money for software. He's had fun learning ever since.
Article Description: No description available.
Article Length (in bytes): 8,637
Starting Page Number: 28
Article Number: 20203
Related Web Link(s):


Excerpt of article text...

I am a huge fan of Xojo's Custom Code Reformatting feature—you install a XojoScript in Xojo's Scripts folder and have it change the standard way Xojo formats code in the editor (see xDev 15.5 and 16.2 http://www.xdevmag.com/browse/15.5/15507 and http://www.xdevmag.com/browse/16.2/16207).

After a recent Xojo update last fall, however, I noticed my script wasn't working. At the time, I was busy with xDev deadlines and didn't have time to troubleshoot. It wasn't a huge deal as my own code was the main thing I was editing and it was already formatted correctly. I just turned off Xojo's automatic formatting and forgot about it.

Recently, however, I started working with some old code formatted in a manner I didn't like, so I turned the feature back on and saw it still wasn't working. I began to investigate, double-checking my script, installing the standard demo script from Xojo's documentation (https://docs.xojo.com/UserGuide:Custom_Code_Reformatting), and doing all sorts of troubleshooting.

This was tedious, as you have to relaunch Xojo each time to get it to notice any changes to your Custom Code Reformatting setup. Eventually, I was completely stumped and out of ideas, as it seemed to me nothing I did made any difference—it was as though Xojo wasn't even seeing my script!

I checked Feedback and Forums for reports on the problem and found no mentions of it. Baffled, I posted a question on the Forum (https://forum.xojo.com/t/reformatcode-xojo-script-broken-in-2021r3/68272/5). Soon others were saying the feature worked fine for them, which was even more bewildering. Then I received a solution from the awesome Tim Parnell (Thanks, Tim!) who correctly identified that my copy of Xojo was in "quarantine."

What the Heck is Quarantine?

...End of Excerpt. Please purchase the magazine to read the full article.