How to autowrap comments [message #1785976] |
Mon, 23 April 2018 13:43  |
Eclipse User |
|
|
|
Hello,
I would like to have the XText formatter of my language auto-wrap multi-line comments, and maybe even single-line comments (by joining together successive single-line comments).
So far I have been able to perform auto-wrapping for semantic elements by calling "autowrap" before or after certain keywords of the grammar. However comments are handled by MultilineCommentReplacer and SinglelineDocCommentReplacer.
I know that I can provide my own implementations of these classes by overriding AbstractFormatter2::createCommentReplacer() but I have no idea what I should do in the implementations that I provide.
Any hints? :)
Thanks!
--
Elie
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03686 seconds