Page 1 of 1

Multiple comments

Posted: Thu Nov 20, 2003 10:19 am
by schraube
Hello,

my syntax allows multiple comments.

{ This is a beginning of a multiple comment

some code { line comment }
...

end of multiple comment }

Any ideas, how to hi(gh)light?

Thanks and best regards,
Mark

Posted: Thu Nov 20, 2003 12:29 pm
by bbadmin
Nested comments cannot be handled, due to a trade-off in favor of saving memory in the design of TextPad. More specifically, to keep track of nested comments, the in-memory overhead of storing each line would double. This would be insignificant for many document types, such as program source files, which are unlikely to be very big, but TextPad is designed as a general purpose text editor, so has to be able to cope with huge files.

Keith MacDonald
Helios Software Solutions