Book a Demo

Author Topic: Comment wrap  (Read 3359 times)

gds

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Comment wrap
« on: March 15, 2014, 02:49:25 am »
Regarding the option "Wrap long comment lines at" on the "Object Options" dialog, it seems that the value entered there is actually relative to the length of the actual line of text rather than absolute column number on page. For example, if the comment actually is indented 8 spaces, and the "wrap at" setting is 80, the text will actually wrap at 88 and sometimes more.
(Maybe that is because if tabs are used to indent, EA can't assume how many spaces per tab someone may set their editor to.)
Can someone explain exactly what the algorithm for wrapping is and the exact meaning of the value entered?

Thanks!

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Comment wrap
« Reply #1 on: March 17, 2014, 09:03:55 am »
I'm not sure what the algorithm is, if one is used at all, but the setting simply defines how many characters are in the line from the point at which the text starts. It does not fix a character column position on the 'page' - a block of code can have several layers of indent, so if you fixed an end column position you might end up with a very narrow, elongated comment section.
Best Regards, Roy

gds

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Comment wrap
« Reply #2 on: March 18, 2014, 10:54:28 am »
Thanks, that what I thought. However, the documentation on this feature is not clear how it actually works.

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Comment wrap
« Reply #3 on: March 18, 2014, 11:40:05 am »
Yes. I have tweaked the explanation to make it clearer.
Best Regards, Roy