[Gambas-user] comments
Ron
ron at ...1740...
Tue Jul 14 08:28:41 CEST 2009
Stephen Bungay wrote:
> I made up a standard comment block a long time ago as a text file, I
> simply paste it in and modify/add to it as needed. Yes you have to put
> the ' at the start of every new comment line, but IMHO that is no big deal.
>
> Steve.
>
>
Yeah but the the damage is already done then.
What I was trying to explain was, if you paste a text like this into the
editor:
---
This is some text with debug information
and is just used to explain my point.
And there should be a bunch more lines below this one with preserved
words in them.
---
It becomes this, even before you have a chance to comment it:
---
This IS some text WITH DEBUG information
AND IS just used TO explain my point.
AND there should be a bunch more lines below this one WITH preserved
words IN them.
---
Even if you arrange enough blank lines with a ' in front before you
paste it over them. You get this:
---
'This is some text with debug information
AND IS just used TO explain my point.
AND there should be a bunch more lines below this one WITH preserved
words IN them.
'
'
---
That wouldn't be the case if you can put an /*
and */ and can paste between those.
Can't explain it any more clearer than this.
Too bad it's a lot of work to implement.
Regards,
Ron_2nd.
> Ron wrote:
>
>> But.. sometimes you want to paste some lines of text as comment into your
>> code. If you do this your way the text gets parsed/changed as soon as you
>> paste it. Before you get the change to mark it as comment.It would be nice
>> if you can type /* and */ and paste the stuff between it so the editor
>> leaves it untouched. That's my reason for having a more clever way of
>> marking a comment block.
>> Regards,
>> Ron_2nd.
>>
>> ---
>> this e-mail is sent with my android phone.
>>
>>
>>> Highlight the block of code you want to comment out.... then click > the
>>>
>> little comment icon i...
>> Yes but no: many times I have to comment/decomment many parts of a single
>> block, with C comment you can see where you are instantly otherwise you
>> must re-read each line.
>>
>> But thanks anyway :)
>>
>>
More information about the User
mailing list