I am in C++ mode in emacs, creating block comments for Doxygen in the Qt style. The following is expected behavior:
/*!
* comment
*/
Using "tab" on each line indents this in an expected way.
However, the style in this large codebase is to use large "flags" of asterisks to create an open box, like this:
/*!
***************************
* Comment
***************************
*/
This is imposed on me, I cannot change it.
When I get to the 2nd asterisk in the 2nd line, I get this:
/*!
**
rather than this
/*!
**
The asterisks "jump back" a column, and now everything is justified left, rather than aligning under the first asterisk.
How can I change this behavior? The 2nd asterisk seems to invoke unique behavior this way, any other character entered there does not "push back" the previously entered asterisk.
I cannot just use a template to do this, because the code layout must be invariant under an indent-region over the whole file.