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.

_______________________________________________
Users-prolog mailing list
Users-prolog@gnu.org
https://lists.gnu.org/mailman/listinfo/users-prolog

Reply via email to