[Gambas-user] gb3: carriage return on comment line modification
Kevin Fishburne
kevinfishburne at ...1887...
Wed Aug 10 18:38:05 CEST 2011
While this is an overall improvement, I think it needs a small
adjustment to make it perfect: a new comment line should not be created
if the carriage return occurs at the very beginning or very end of of a
comment line.
Pressing Enter in the middle of a comment almost certainly means you
want all text to the right to become a comment on the next line (which
works brilliantly). Pressing Enter at the end of a comment most of the
time probably means you're about to enter some code. If you were going
to enter another line of comments, hitting Tab and ' is pretty easy.
Hitting Enter at the beginning of a comment line probably means you're
just trying to move the comment line down.
This is what happens when you press Enter at the end of a comment line:
' Comment line 1.
'
And this if pressed at the beginning:
' ' Comment line 1.
--
Kevin Fishburne
Eight Virtues
www: http://sales.eightvirtues.com
e-mail: sales at ...1887...
phone: (770) 853-6271
More information about the User
mailing list