Uploaded image for project: 'Snowstorm'
  1. Snowstorm
  2. STORM-959

LSL multiline comments

    XMLWordPrintableJSON

Details

    • Story
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Viewer 2.6.0
    • None
    • -
    • Hide

      1) Create new script.
      2) Add new line starting with '/*'. Ensure all following text is highlighted as a comment (colour changed and hovering mouse shows tooltip say it is a comment).
      3) Some lines further down, add a new line starting '*/'. Ensure commenting highlighting stops for following text.

      Show
      1) Create new script. 2) Add new line starting with '/*'. Ensure all following text is highlighted as a comment (colour changed and hovering mouse shows tooltip say it is a comment). 3) Some lines further down, add a new line starting '*/'. Ensure commenting highlighting stops for following text.

    Description

      I think it would be usefull to have (added), in LSL, C-like multiline comments (/* ... */) to comment/disable large pieces of code: now it's really boring comment/uncommenting pieces of scripts to leave them in place for the future.
      This may provide neat comments also, but the main thing is enable/disable mid/huge slices of code.

      Now

      // for(a=1; a<=10; a++)

      { // llSay(0,"we're at "+(string)a); // ...some statements... // ...some statements... // }

      with C-like comments

      /* (re-enable this piece if you want to...)
      for(a=1; a<=10; a++)

      { llSay(0,"we're at "+(string)a); ...some statements... ...some statements... }

      */

      Attachments

        Activity

          People

            Unassigned Unassigned
            elwe.ewing Elwe Ewing
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: