Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #5316

    fgdfg3434
    Member

    !!!!!! Sorry for my english, I am not native english speaker

    I have 2 macroses. The first macros include call of second macros through new ‘#include’ directive.

    After execution of first macros I have an error:
    “Invalid sign/char
    File ….1.jsee
    Line 3″

    1.jsee
    ———————————–
    #language = “JavaScript”
    Window.document.write( ‘Hello 111 ! ‘);
    #include “2.jsee”
    ———————————–

    2.jsee
    ———————————–
    #language = “JavaScript”
    Window.document.write( ‘Hello 222 ! ‘);
    ———————————–

    #5317

    Yutaka Emura
    Keymaster

    fgdfg3434 wrote:
    !!!!!! Sorry for my english, I am not native english speaker

    I have 2 macroses. The first macros include call of second macros through new ‘#include’ directive.

    After execution of first macros I have an error:
    “Invalid sign/char
    File ….1.jsee
    Line 3″

    1.jsee
    ———————————–
    #language = “JavaScript”
    Window.document.write( ‘Hello 111 ! ‘);
    #include “2.jsee”
    ———————————–

    2.jsee
    ———————————–
    #language = “JavaScript”
    Window.document.write( ‘Hello 222 ! ‘);
    ———————————–

    #include and all directives beginning with # must be before any real code. This is because EmEditor cannot distinguish directives inside once the code begins, and so all the directives must be at top of the file.

    #5318

    fgdfg3434
    Member

    oo! tnx
    —————————-
    #language = “JavaScript”
    #include “2.jsee”
    Window.document.write( ‘Hello!’ );
    —————————-
    this is work, but i needed the following
    ———————————
    // comment at top of the file
    #language = “JavaScript”
    #include “2.jsee”
    Window.document.write( ‘Hello!’ );
    ———————————

    #5319

    Yutaka Emura
    Keymaster

    fgdfg3434 wrote:
    oo! tnx
    —————————-
    #language = “JavaScript”
    #include “2.jsee”
    Window.document.write( ‘Hello!’ );
    —————————-
    this is work, but i needed the following
    ———————————
    // comment at top of the file
    #language = “JavaScript”
    #include “2.jsee”
    Window.document.write( ‘Hello!’ );
    ———————————

    Again, you cannot put // comment at top of the file.
    # lines must be at top!

    Also


    Window.document.write( 'Hello!' );

    should be


    document.write( 'Hello!' );

    Correct code:


    #language = "JavaScript"
    #include "2.jsee"
    // comment at top of the file
    document.write( 'Hello!' );
    #5320

    fgdfg3434
    Member

    # comment at top of the file
    #
    #language = “JavaScript”
    #include “2.jsee”
    Window.document.write( ‘Hello!’ );

    can I make thus?

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Share with friends... Tweet about this on TwitterShare on FacebookShare on Google+Email this to someone