[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multilines strings "a la python"

From: Ulrich Neumerkel
Subject: Re: multilines strings "a la python"
Date: Sun, 01 Feb 2015 23:38:56 +0100

>> 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

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 -->
    "                          \n\
main()                         \n\
   {  int i;                   \n\
      i = 3;                   \n\
      if (i > 2)               \n\
        whatever();            \n\
      exit(0);                 \n\
   }                           \n\

reply via email to

[Prev in Thread] Current Thread [Next in Thread]