Paste text in Code Viewer ?
Paste text in Code Viewer ?
Hi All
Does anybody know of a way to paste text into Code Viewer?
I know it is called a viewer for a reason, any way around that?
Understand you can load a program and save it with a sifferent name but
if there is no way to paste text, is there a way to copy a lot of blocks and then paste them ?
Is there a FAQ? maybe we could add things like scratch-codebug
http://simplesi.net/scratchcodebug-beta-testing/
Thanks in advance for any answers
Does anybody know of a way to paste text into Code Viewer?
I know it is called a viewer for a reason, any way around that?
Understand you can load a program and save it with a sifferent name but
if there is no way to paste text, is there a way to copy a lot of blocks and then paste them ?
Is there a FAQ? maybe we could add things like scratch-codebug
http://simplesi.net/scratchcodebug-beta-testing/
Thanks in advance for any answers
Re: Paste text in Code Viewer ?
There is already a scratch sub forum on here:
http://codebugforum.co.uk/viewforum.php?f=14
http://codebugforum.co.uk/viewforum.php?f=14
Re: Paste text in Code Viewer ?
Yes, you can copy and paste:testing wrote:Hi All
Is there a way to copy a lot of blocks and then paste them ?
If you right click on a block you can duplicate it (and any sub-blocks) and drop the duplicates into your program further down.
if you have a section of blocks that you want to duplicate you could first drag them into a loop (1) block, then duplicate the loop (1) block and all your blocks will be duplicated.
Drop duplicates into the program immediately, if you put them aside from the program they will split into their components.
Re: Paste text in Code Viewer ?
Of course what we want to do is copy from script A and paste into script B which would allow some limited code reuse. Much better would be the ability to include one script in another as a module.BMS Doug wrote:Yes, you can copy and paste:testing wrote:Hi All
Is there a way to copy a lot of blocks and then paste them ?
If you right click on a block you can duplicate it (and any sub-blocks) and drop the duplicates into your program further down.
if you have a section of blocks that you want to duplicate you could first drag them into a loop (1) block, then duplicate the loop (1) block and all your blocks will be duplicated.
Drop duplicates into the program immediately, if you put them aside from the program they will split into their components.
Re: Paste text in Code Viewer ?
Re-mix from project A to start Project B?pigraham wrote: Of course what we want to do is copy from script A and paste into script B which would allow some limited code reuse. Much better would be the ability to include one script in another as a module.
Not ideal perhaps, maybe the codebug developers will read this and take heed.
Re: Paste text in Code Viewer ?
Yes, that's the basic idea, but there is no way to combine A & B to make to make project C, short of a remix of A plus rebuilding the parts of B, block by block. Tedious.BMS Doug wrote:Re-mix from project A to start Project B?pigraham wrote: Of course what we want to do is copy from script A and paste into script B which would allow some limited code reuse. Much better would be the ability to include one script in another as a module.
Not ideal perhaps, maybe the codebug developers will read this and take heed.
Re: Paste text in Code Viewer ?
pigraham wrote:
Yes, that's the basic idea, but there is no way to combine A & B to make to make project C, short of a remix of A plus rebuilding the parts of B, block by block. Tedious.
Perhaps we should develop a wishlist of features we'd like to see.
Re: Paste text in Code Viewer ?
A wish list is a very good idea.
Is there any other person who is a programmer and besides using codebug for his/her child
could do some programming in text format ?
Any more suggestions/wishes for improvement?
Is there any other person who is a programmer and besides using codebug for his/her child
could do some programming in text format ?
Any more suggestions/wishes for improvement?
Re: Paste text in Code Viewer ?
The problem with an editable codeviewer is that as soon as you make even a minor edit in code,
the graphical blockly sketch is then no longer fully representative of the program as a whole.
You lose the 1:1 relationship that we have now flipping between blockly and code viewer.
Ways around that get complex quickly ...
e.g. a "custom" block - that just has two inputs and one output, letting us write the javascript
An alternative is to have a separate part of the site for uploading javascript to convert to .cdg
or an offline compiler...
the graphical blockly sketch is then no longer fully representative of the program as a whole.
You lose the 1:1 relationship that we have now flipping between blockly and code viewer.
Ways around that get complex quickly ...
e.g. a "custom" block - that just has two inputs and one output, letting us write the javascript
An alternative is to have a separate part of the site for uploading javascript to convert to .cdg
or an offline compiler...
Re: Paste text in Code Viewer ?
As I understand it Blockly prduces the javascript that produces the Bug code. It would be useful to be able to edit the code even if you can no longer flip between block and code.
The code view doesn't seem very useful.
The code view doesn't seem very useful.