Emacs has command called fill-paragraph. It basically restructures current paragraph to fit into certain width. It is a bit smarter than simple line wrap because it understands various languages, e.g. Javadoc. So when calling fill-paragraph on something like:
/********************
* Long text here
*******************/
It will correctly restructure it as:
/********************
* Long
* text
* here
*******************/
I am wondering if SE has something similar. Comment wrap seems to be close to what I am looking for, but comment wrap changes text as I type. What I need is something that does it once, on demand.
Thanks