Strings: LPC

Strings: LPC

2
NewbieNewbie
2

    Feb 17, 2005#1

    Hello All,
    In LPC it is possible to define a multiline string like this

    set("short", @ENDTEXT
    multiline string is here
    more string
    ENDTEXT);

    Is this possible to define as a string? All lines between @ENDTEXT and ENDTEXT are compiled as a string. So the above is equivalent to

    set("short", "multiline string is here\n"+
    "more string\n");

    Thanks,
    -Robert

    6,675585
    Grand MasterGrand Master
    6,675585

      Mar 12, 2005#2

      No. But a workaround is to highlight such multiline strings as alternative block comments and set the color for the alternative block comment to the same as the strings. Add

      Block Comment On Alt = @ENDTEXT Block Comment Off Alt = ENDTEXT

      to the language definition line.

      Wondering why this works (with V10.10c) although the help specifies only up to five characters are allowed for block comments - I, too. But it really works.
      Best regards from an UC/UE/UES for Windows user from Austria

      2
      NewbieNewbie
      2

        Mar 15, 2005#3

        Thanks thats exactly what I ended up doing :)
        -RCLapointe