Multiple comments

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
schraube
Posts: 1
Joined: Thu Nov 20, 2003 10:15 am

Multiple comments

Post 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
User avatar
bbadmin
Site Admin
Posts: 1038
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Post 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
Post Reply