Page 1 of 1

Block comment character limits

Posted: Fri Oct 21, 2005 9:43 am
by martinlooker
Hi I was looking to use <!-- and --> for block comments but it woun't let me enter that many characters.

I'm trying to make a combined php html highlighter as I don't use block comments in PHP I thought I'd use the block comments for HTML comments.

I can't use -> to end the block comment as that is used to refernce class members as in $myclass->member, nor can I use -- cos that is decrement operator.

It would be nice if the number of characters for block comments were not so limited. This may be just an interface limitation on the editbox which might be easy to remove. (The line comments don't appear to be limited in this way.)

Posted: Fri Oct 21, 2005 2:43 pm
by jussij
It would be nice if the number of characters for block comments were not so limited.
This is a known limitation of the current syntax highlighting engine :(
This may be just an interface limitation on the editbox which might be easy to remove.
The GUI is limiting the input for a good reasons. Unfortunately the syntax highligher can only handle a limited number of block comment characters :(
The line comments don't appear to be limited in this way.
In terms of programming logic, line comments are fairly simple to handle, where as the correctly handling of block comments is much harder. This is the reason for the input limitation.

Cheers Jussi