Pragma Do Not Reformat Block

Started by drhoule, March 19, 2015, 05:52:02 PM

Previous topic - Next topic

drhoule

Pragma Do Not Reformat Block
Is there a pragma directive or other ways to protect a btext block format.

Example:

#pragma noreformat
char test[]=
     "Start of very long"
     " more "
     " more "
     "End of long text";
#pragma reformat
char test[]="Start of very long"" more "" more ""End of long text";

For now I declare it as an external in anther file and never reformat that file.

Thank you in advance.
Dr.

frankie

 :(
What you mean? The compiler reformats what you write?
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

DMac

I am going to assume that this question is in reference to selecting all text in a source file and choosing Convert To>Formatted C Code.  This tends to take long statements that one has broken up over several lines and combine them on one line.

If that is the case, I don't know of a way to prevent it.
No one cares how much you know,
until they know how much you care.

TimoVJL

comments may help
char test[] = //
"Start of very long" //
" more " //
" more " //
"End of long text"; //
May the source be with you