- Home
- Programming ZEMAX
- ZPL
- How to Use Programmer's Editors With ZPL
How to Use Programmer's Editors With ZPL
- By Neil Barrett
- Published 1 August 2007
- ZPL
-
Rating:




Summary and References
Editors that support syntax highlighting can really help you when writing macros. Many Editors are available for low cost, and are highly configurable to display your code how you want to read it.
Related Links
1 Response to "How to Use Programmer's Editors With ZPL" 
|
said this on 03 Aug 2007 1:02:27 PM PDT
A nice article. I personally use jEdit (www.jedit.org) for writing ZPL code. It's a freeware editor that supports all of the features discussed in this article and many more. A nice thing about jEdit is it has its own macro language and plug-in architecture. I've developed a plugin that has panels for SetSurfaceData and SetSystemData so I needn't always look up the codes. I supply the values and select the operation in the panel and jEdit inserts the ZPL code for me.
The author mentions that the referenced editors do not support syntax checking. With jEdit I've developed a plugin that does precisely this. It's not perfect, but it does catch dozens of common mistakes. Among other things, it lets you know when you're using a variable that hasn't been defined, when you've used an incorrect number of arguments for a keyword, or when the end of the macro is reached while still in an IF or FOR statement.
|
Author)