@@ -4,10 +4,12 @@ Preprocessor directives
44=======================
55
66ExtendScript provides preprocessor directives for including external scripts, naming scripts, specifying a
7- JavaScript engine, and setting certain flags. Specify these with a C-style statement starting with the #
8- character::
7+ JavaScript engine, and setting certain flags.
8+
9+ Specify these with either a C-style statement starting with the # character, or a comment followed by @::
910
1011 #include "file.jsxinc"
12+ //@include "file.jsxinc"
1113
1214When a directive takes one or more arguments, and an argument contains any nonalphanumeric
1315characters, the argument must be enclosed in single or double quotes. This is generally the case with
@@ -26,6 +28,7 @@ As a convention, use the file extension .jsxinc for JavaScript include files. Fo
2628example::
2729
2830 #include "../include/lib.jsxinc"
31+ //@include "../include/file.jsxinc"
2932
3033To set one or more paths for the #include statement to scan, use the ``#includepath ``
3134preprocessor directive.
@@ -49,6 +52,8 @@ For example::
4952
5053 #includepath "include;../include"
5154 #include "file.jsxinc"
55+ //@includepath "include;../include"
56+ //@include "file.jsxinc"
5257
5358Multiple ``#includepath `` statements are allowed; the list of paths changes each time
5459an ``#includepath `` statement is executed.
0 commit comments