Acrobat JavaScript Editor and Debugger Console
2
Using an External Editor
When Acrobat needs to open the JavaScript editor, it makes the appropriate substitutions
in the command line and executes it with the operating sytem shell. In the above case, if
the syntax error were on line 43, the command line generated would be something like:
"C:\Program Files\vslick\win\vs.exe" "C:\Temp\jsedit.js" +new -#43
T
ABLE
Editor
Boxer
ConTEXT
CodeWright
Emacs
Epsilon
Multi-Edit
TextPad
UltraEdit
VEDIT
Visual
SlickEdit
Testing Whether Your Editor Supports Opening at Syntax Error Locations
On a few editors such as TextPad, Acrobat does not support opening the editor on a line
number. To determine if this capability is supported,
1. Open a syntax error-free script in your editor.
2. Add a syntax error.
3. Move the cursor to a line other than the one containing the syntax error.
4. Close and save the file.
Does a dialog display prompting you to fix the syntax error?
If so, does it correctly specify the line containing the syntax error?
26
2.1
Editors supported as External JavaScript editor with command line templates.
Web site
http://www.boxersoftware.com
http://fixedsys.com/context
http://www.codewright.com
http://www.gnusoftware.com/Emacs
http://www.lugaru.com
http://www.multiedit.com
http://www.textpad.com
http://www.ultraedit.com
http://www.vedit.com
http://www.slickedit.com
Template Command Line
Arguments
-G -2 "%f" [-L%n]
"%f" [/g1:%n]
-M -N -NOSPLASH "%f" [-G%n]
[+%n] "%f"
[+%n] "%f"
/NI /NS /NV [/L%n] "%f"
-m -q "%f"
"%f" [-l%n]
-s2 "%f" [-l %n]
+new "%f" [-#%n]
Acrobat JavaScript Scripting Guide