You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Blockly
Hi,
I am a high school CS teacher with moderate coding experience trying to get started making a blocky html editor. HTML is so modular/Blockly-like I figured it would be natural to make an HTML blocky. However, I am somewhat confused on how to get started. Can you give me some hints on the best way to make a new set of blocks?
Thanks!
Erik Pasternak
unread,
Jul 16, 2017, 4:13:13 PM7/16/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Blockly
Hi Alex,
Blockly doesn't have an HTML generator yet (by default we provide JS, PHP, Dart, Lua, and Python), so you'd need to either find one from another project or write your own. Here's the docs for the generators. It's usually easiest to take one of the existing generators and modify it for your needs.
You could also find a PHP or JS library you like for building websites and make blocks for that. Our docs on custom blocks should go over all the details of creating blocks, but let us know if you run into issues or have any questions.
Cheers,
Erik
Robert Czechowski
unread,
Jul 20, 2017, 11:49:54 AM7/20/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Blockly
Hi Alex, hi Eric,
I actually started working on something similar a while a go. It looks like this right now: http://imgur.com/p1NUbGG (So it's more or less a complete editor with live html preview and website preview.)
It's missing lots of interesting html and css blocks and it is completely in German – but the translation into English should be the least problem.
If you want, I can clean it up a little bit an release the blocks, generators or the whole page somewhere.
Best regards
Robert
Alex Booth
unread,
Jul 20, 2017, 5:36:19 PM7/20/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Blockly
Robert, I would be grateful for anything you can share. Do you have a GitHub repository for your project? That would be a very natural way to continue the project. Either way, please let me know the best way to get the code from you. Thanks!!
Robert Czechowski
unread,
Jul 21, 2017, 1:45:42 PM7/21/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
The blocks are designed to translate to HTML 1:1, but I could also
imagine to redesign them to correspond to more general markup – so you
could also generate LaTeX or Markdown out of them. (I think that would
be more Blockly-style.)
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Blockly
Robert,
Thank you so much--this looks great. It is so nice to have a good starting point. I want to develop this a little further--would you like me to contribute to your project on github, or would you like me to make my own fork. If you want me to contribute, please add me on github as a contributor.