Article Preview
Buy Now
COLUMN
Making Code Pretty 2
Using IDE Scripting for Custom Code Formatting
Issue: 16.2 (March/April 2018)
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): 13,204
Starting Page Number: 84
Article Number: 16207
Resource File(s):
project 16207.zip Updated: 2018-02-28 18:43:06
Related Web Link(s):
http://developer.xojo.com/custom-code-reformatting
Excerpt of article text...
Last fall, in
xDev 15.5 , I wrote about a new power user feature of Xojo,custom code formatting (http://developer.xojo.com/custom-code-reformatting). This is where you can use a XojoScript to format your code in the IDE the wayyou want it to look.At the time the feature was brand new, buggy, and barely documented. The script I wrote about was limited and had some major bugs. I also received feedback about minor errors in the column, and I have since improved my script. So here's Version 2!
Quick Recap
Everyone has their own coding style, so my preferences may not match yours. But I had these goals for my script:
- every token begins with a lowercase letter (reserved words are already in color, so having them in caps is distracting and overemphasizes them)
- preserve camelCase for my variable and method names
...End of Excerpt. Please purchase the magazine to read the full article.