Re: multilines strings "a la python"
Ulrich Neumerkel <[email protected]>
| Newsgroups | gmane.comp.gnu.prolog.general |
|---|---|
| Message-ID | <[email protected]> |
Algaba:
>> I add such text in Emacs with C-x r t \n\ Return
>> So spaces are added in lines that happen to be shorter.
>Yes, I do create a macro that adds \n\ to the end of the line and then I
>execute it n-times. But it's not nearly as easy as in
>python.
Putting \n\ directly at the end makes rather unreadable code. But at
a fixed column position it is much better readable. Look at the
following with a fixed-width font!
main_prog -->
disclaimer,
" \n\
main() \n\
{ int i; \n\
i = 3; \n\
if (i > 2) \n\
whatever(); \n\
exit(0); \n\
} \n\
",
footer.