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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
I know this.
But I´m looking for a way to make a comment from a certain point to the end of the line.
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.
There are two different kinds of comments: line comments and block comments. The User Defined Language dialog has separate entry areas for each.