Lex Trotman wrote:
So far so good. But that the same trick does not work with paste:
No, because all the text is pasted first then the lexer is run to decide how it should be highlighted. So when the return is pasted it doesn't know that its part of a multiline comment. To make it work, you would have to paste a character, run the lexer, paste a character, run the lexer etc for each character in the paste text which would make it unacceptably slow for large pastes.
Then I suggest adding a "Paste Special" menu command to do just that. Documentation comments are not that long, and the need to fill in the missing prefixes is very distracting.
Can you offer any advice on reformatting paragraphs in this prefixed mode?
Thanks, Chris