Menu

User Language - Comment to end of the line

chrisb
2008-10-08
2012-11-13
  • chrisb

    chrisb - 2008-10-08

    HI!
    I´d like to make my own language highlighting, but I have a problem with the comments. If there is a "*" a the beginning of the line, the whole line is a comment. If there is a "!" somewhere in the line the following text is a comment until the line ends. How can I tell this Notepad++? There is no special end-of-comment-letter.

    I tried \n and \n\r for the carriage return but it doesn´t work.

    Somebody an idea?

    best regards!
    chrisb

     
    • chrisb

      chrisb - 2008-10-17

      I know this.
      But I´m looking for a way to make a comment from a certain point to the end of the line.

       
      • Bob Uncle

        Bob Uncle - 2008-10-17

        Then you are looking for a line comment.

        A line comment does not require the character sequence to be at the start of the line. Everything to the right of the line, after the desired character sequence, is commented with a line comment.

         
    • Airdrik

      Airdrik - 2008-10-15

      There are two different kinds of comments: line comments and block comments.  The User Defined Language dialog has separate entry areas for each. 

       
MongoDB Logo MongoDB