# PXT

**URL:** https://forum.makecode.com/c/custom-makecode-editors/8.md?page=3

[Latest](https://forum.makecode.com/latest.md) · [Categories](https://forum.makecode.com/categories.md) · [Tags](https://forum.makecode.com/tags.md)

**Page:** 4

---

## [JavaScript block?](https://forum.makecode.com/t/javascript-block/3983)

<div class="topic-metadata">

**Author:** [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Replies:** 3\
**Last updated:** [October 20, 2020, 6:49pm UTC](https://forum.makecode.com/t/javascript-block/3983 "2020-10-20T18:49:43Z")

</div>

It would be great if the gray blocks had like a text box in it so we could edit it without going to JavaScript mode. So instead of this: It would look more like this: And you can click inside the box to type in it…

---

## [JavaScript code problem with toString()](https://forum.makecode.com/t/javascript-code-problem-with-tostring/3864)

<div class="topic-metadata">

**Author:** [@keble6](https://forum.makecode.com/u/keble6)\
**Replies:** 4\
**Last updated:** [October 14, 2020, 2:17am UTC](https://forum.makecode.com/t/javascript-code-problem-with-tostring/3864 "2020-10-14T02:17:46Z")

</div>

I wanted to use toString(radix) where radix is, say, 2 to display a number in binary. But the JS window brings up this error: “Expected 0 arguments but got 1” Is that a bug?

---

## [Hide the while loop block?](https://forum.makecode.com/t/hide-the-while-loop-block/3545)

<div class="topic-metadata">

**Author:** [@jfo8000](https://forum.makecode.com/u/jfo8000)\
**Replies:** 2\
**Last updated:** [September 24, 2020, 3:59am UTC](https://forum.makecode.com/t/hide-the-while-loop-block/3545 "2020-09-24T03:59:28Z")

</div>

I would like to hide the while loop in my PXT as ItCanOnlyLeadToTrouble … any chance of just hiding one block in the loops category? JFo https://makecode.buildbee.com

---

## [How to develop extension code - use pxt serve?](https://forum.makecode.com/t/how-to-develop-extension-code-use-pxt-serve/3549)

<div class="topic-metadata">

**Author:** [@keble6](https://forum.makecode.com/u/keble6)\
**Replies:** 2\
**Last updated:** [September 23, 2020, 9:21pm UTC](https://forum.makecode.com/t/how-to-develop-extension-code-use-pxt-serve/3549 "2020-09-23T21:21:35Z")

</div>

I have been developing a microcrobit extension using MS Playground - but it looks like the next step is to build my local version of pxt, and I can’t find any beginner’s documentation on the flow. Can anyone point me in…

---

## [Icons in the blocks?](https://forum.makecode.com/t/icons-in-the-blocks/3244)

<div class="topic-metadata">

**Author:** [@jfo8000](https://forum.makecode.com/u/jfo8000)\
**Replies:** 2\
**Last updated:** [August 28, 2020, 9:13pm UTC](https://forum.makecode.com/t/icons-in-the-blocks/3244 "2020-08-28T21:13:52Z")

</div>

Is there a way to pop an icon in a block on the left hand side? I am creating a series of shapes (https://makecode.buildbee.com) - would be neat to add shape outlines to my blocks. JFo

---

## [Docs URLs have double slashes](https://forum.makecode.com/t/docs-urls-have-double-slashes/3178)

<div class="topic-metadata">

**Author:** [@jfo8000](https://forum.makecode.com/u/jfo8000)\
**Replies:** 3\
**Last updated:** [August 26, 2020, 8:22pm UTC](https://forum.makecode.com/t/docs-urls-have-double-slashes/3178 "2020-08-26T20:22:51Z")

</div>

I am having a bit of trouble with the URLs used for documentation - they emit a double slash, which causes them not to be loaded on my webserver… :confused: I went into the network panel for pxt-sample and saw that it w…

---

## [Using arrays in the API - being passed in as RefCollections?](https://forum.makecode.com/t/using-arrays-in-the-api-being-passed-in-as-refcollections/2999)

<div class="topic-metadata">

**Author:** [@jfo8000](https://forum.makecode.com/u/jfo8000)\
**Replies:** 3\
**Last updated:** [August 4, 2020, 9:56pm UTC](https://forum.makecode.com/t/using-arrays-in-the-api-being-passed-in-as-refcollections/2999 "2020-08-04T21:56:16Z")

</div>

I am following the directions here //% block="draw 3d lines with width $width|height $height|closed $closed|from 2d points $points" //% width.defl=10 //% height.defl=10 //% closed.defl=true //% points.defl="inner\_…

---

## [Couple of questions making a PXT](https://forum.makecode.com/t/couple-of-questions-making-a-pxt/2333)

<div class="topic-metadata">

**Author:** [@jfo8000](https://forum.makecode.com/u/jfo8000)\
**Replies:** 18\
**Last updated:** [August 4, 2020, 8:54pm UTC](https://forum.makecode.com/t/couple-of-questions-making-a-pxt/2333 "2020-08-04T20:54:20Z")

</div>

I am looking at making a PXT to wrap a javascript library - was tossing up between this and doing my own blockly. Basically I am experimenting with a 3d asset generator to make 3d printable objects. I have gotten prett…

---

## [Pxt-sample todo list / pxt staticpkg to github doesn't update right?](https://forum.makecode.com/t/pxt-sample-todo-list-pxt-staticpkg-to-github-doesnt-update-right/2904)

<div class="topic-metadata">

**Author:** [@jfo8000](https://forum.makecode.com/u/jfo8000)\
**Replies:** 1\
**Last updated:** [July 26, 2020, 3:46am UTC](https://forum.makecode.com/t/pxt-sample-todo-list-pxt-staticpkg-to-github-doesnt-update-right/2904 "2020-07-26T03:46:20Z")

</div>

I am in the middle of making a pxt but I am having some difficulty following the pxt-sample instructions. So far I have completed Fork repo and setup local server (see below) Update metadata in pxtarget.json . Change…

---

## [How to add functions in a class and set the object automatically?](https://forum.makecode.com/t/how-to-add-functions-in-a-class-and-set-the-object-automatically/2584)

<div class="topic-metadata">

**Author:** [@ameyrr250](https://forum.makecode.com/u/ameyrr250)\
**Replies:** 3\
**Last updated:** [July 15, 2020, 11:51am UTC](https://forum.makecode.com/t/how-to-add-functions-in-a-class-and-set-the-object-automatically/2584 "2020-07-15T11:51:42Z")

</div>

Hi, Posting it here as unsure if its more relevant here. I want to have all my functions in a class for each main block. Right now what I do is, namespace ABC{ //% block=“create lcd settings” //% blockSetVariable=“A…

---

## [How to add self block](https://forum.makecode.com/t/how-to-add-self-block/2521)

<div class="topic-metadata">

**Author:** [@Kunal614](https://forum.makecode.com/u/Kunal614)\
**Replies:** 6\
**Last updated:** [July 14, 2020, 10:05pm UTC](https://forum.makecode.com/t/how-to-add-self-block/2521 "2020-07-14T22:05:31Z")

</div>

I want to add my block in pxt-maker , and i also generated static files , where to add block and how.

---

## [Missing files](https://forum.makecode.com/t/missing-files/2600)

<div class="topic-metadata">

**Author:** [@Dwagga](https://forum.makecode.com/u/Dwagga)\
**Replies:** 0\
**Last updated:** [July 1, 2020, 10:36am UTC](https://forum.makecode.com/t/missing-files/2600 "2020-07-01T10:36:24Z")

</div>

Hello! When I execute “pxt serve” I got these missing files. However, after some minutes the building is complete anyway. How can I fix this?

---

## [Can I change the shape of the blocks?](https://forum.makecode.com/t/can-i-change-the-shape-of-the-blocks/2547)

<div class="topic-metadata">

**Author:** [@luizbr](https://forum.makecode.com/u/luizbr)\
**Replies:** 0\
**Last updated:** [June 26, 2020, 6:21pm UTC](https://forum.makecode.com/t/can-i-change-the-shape-of-the-blocks/2547 "2020-06-26T18:21:56Z")

</div>

I’m thinking of making an editor with PXT, but I would like to change the format of blocks similar to blockly: Like a puzzle and pictures inside. Could I do that? Where can I start? thank’s a lot

---

## [Toolbox icons in PXT-Blockly](https://forum.makecode.com/t/toolbox-icons-in-pxt-blockly/2472)

<div class="topic-metadata">

**Author:** [@JoshuaLowe1002](https://forum.makecode.com/u/JoshuaLowe1002)\
**Replies:** 4\
**Last updated:** [June 22, 2020, 3:59pm UTC](https://forum.makecode.com/t/toolbox-icons-in-pxt-blockly/2472 "2020-06-22T15:59:56Z")

</div>

Hi all, Updated to use the latest PXT-Blockly version and notice that the icons have disappeared in the toolbox (I was using v2.1.14 before). I see they’re also no longer in the playground. Has something been removed? W…

---

## [Block Sub-Category (not groups)](https://forum.makecode.com/t/block-sub-category-not-groups/2361)

<div class="topic-metadata">

**Author:** [@joshkeys19](https://forum.makecode.com/u/joshkeys19)\
**Replies:** 2\
**Last updated:** [June 10, 2020, 4:59pm UTC](https://forum.makecode.com/t/block-sub-category-not-groups/2361 "2020-06-10T16:59:23Z")

</div>

Hey everyone. I may be imagining it, but last fall at the micro:bit live conference in Manchester I was sure that Peli de Halleux showed me an example of a sub-category in a makecode IDE. I.e. imagine if you clicked on t…

---

## [Any plans to make makecode APIs public?](https://forum.makecode.com/t/any-plans-to-make-makecode-apis-public/2338)

<div class="topic-metadata">

**Author:** [@suraj022](https://forum.makecode.com/u/suraj022)\
**Replies:** 0\
**Last updated:** [June 7, 2020, 5:14pm UTC](https://forum.makecode.com/t/any-plans-to-make-makecode-apis-public/2338 "2020-06-07T17:14:21Z")

</div>

Hi. Are there any plans to make the makecode API available to general public? maybe a documentation or making it open-source? The proper function of our own hosted editor requires us to implement the APIs that makecode…

---

## [Deleted variable bug](https://forum.makecode.com/t/deleted-variable-bug/2201)

<div class="topic-metadata">

**Author:** [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Replies:** 1\
**Last updated:** [May 23, 2020, 9:43pm UTC](https://forum.makecode.com/t/deleted-variable-bug/2201 "2020-05-23T21:43:19Z")

</div>

I think this would be considered a editor bug, because when you select one of the pull down select a variable buttons, the attached blocks are stuck to your cursor. Steps to reproduce: Drag out for element value of …

---

## [shim=ENUM\_GET being ignored in api.ts file?](https://forum.makecode.com/t/shim-enum-get-being-ignored-in-api-ts-file/2194)

<div class="topic-metadata">

**Author:** [@bblumberg](https://forum.makecode.com/u/bblumberg)\
**Replies:** 0\
**Last updated:** [May 22, 2020, 8:04pm UTC](https://forum.makecode.com/t/shim-enum-get-being-ignored-in-api-ts-file/2194 "2020-05-22T20:04:53Z")

</div>

I am getting up to speed on MakeCode/PXT and working through some of the examples. In particular, I am stuck on creating a block that can generate a enum per the playground example (color, flags, planets). In my api.ts f…

---

## [Go to editor link in docs broken](https://forum.makecode.com/t/go-to-editor-link-in-docs-broken/2112)

<div class="topic-metadata">

**Author:** [@suraj022](https://forum.makecode.com/u/suraj022)\
**Replies:** 0\
**Last updated:** [May 17, 2020, 2:35pm UTC](https://forum.makecode.com/t/go-to-editor-link-in-docs-broken/2112 "2020-05-17T14:35:32Z")

</div>

The go to editor in docs links to localhost/docs/.html instead of localhost there are many other broken links in docs aswell, but I’ve managed to fix most using .htaccess file. the only problem remaining is the one st…

---

## [C++ extension failing to build](https://forum.makecode.com/t/c-extension-failing-to-build/1994)

<div class="topic-metadata">

**Author:** [@luqmaanb](https://forum.makecode.com/u/luqmaanb)\
**Replies:** 1\
**Last updated:** [May 7, 2020, 5:56pm UTC](https://forum.makecode.com/t/c-extension-failing-to-build/1994 "2020-05-07T17:56:32Z")

</div>

C++ build is not compiling on both microbit and maker. It continues to poll indefinitely. To replicate the issue: mkdir test cd test pxt init pxt add cpp pxt build Please provide assistance on the matter.

---

## [PXT-Blockly Rendering Bug](https://forum.makecode.com/t/pxt-blockly-rendering-bug/1929)

<div class="topic-metadata">

**Author:** [@JoshuaLowe1002](https://forum.makecode.com/u/JoshuaLowe1002)\
**Replies:** 1\
**Last updated:** [May 4, 2020, 4:59pm UTC](https://forum.makecode.com/t/pxt-blockly-rendering-bug/1929 "2020-05-04T16:59:25Z")

</div>

I think there might be a bug in the latest pxt-blockly release or it might be something I am doing. When I import the compressed files, this is what I get Hopefully someone can point me to a fix

---

## [Variables shadow block gone in toolbox after changing to NPM PXT-Blockly](https://forum.makecode.com/t/variables-shadow-block-gone-in-toolbox-after-changing-to-npm-pxt-blockly/1900)

<div class="topic-metadata">

**Author:** [@JoshuaLowe1002](https://forum.makecode.com/u/JoshuaLowe1002)\
**Replies:** 0\
**Last updated:** [April 30, 2020, 5:47pm UTC](https://forum.makecode.com/t/variables-shadow-block-gone-in-toolbox-after-changing-to-npm-pxt-blockly/1900 "2020-04-30T17:47:18Z")

</div>

I’ve switched over to using NPM PXT-Blockly. I’ve got some custom variable blocks for blockly of which are working fine with the create variable button apart from one feature. For some reason the shadow block of which …

---

## [What does "parts" attribute do?](https://forum.makecode.com/t/what-does-parts-attribute-do/1821)

<div class="topic-metadata">

**Author:** [@mkilpatr](https://forum.makecode.com/u/mkilpatr)\
**Replies:** 6\
**Last updated:** [April 27, 2020, 4:47pm UTC](https://forum.makecode.com/t/what-does-parts-attribute-do/1821 "2020-04-27T16:47:20Z")

</div>

What exactly is the parts attribute for in the block annotations, please? There are examples in the “game” extension for the Microbit. When is it required and for what? //% weight=60 blockGap=8 help=game/create-sprite /…

---

## [Complex custom field editors?](https://forum.makecode.com/t/complex-custom-field-editors/1787)

<div class="topic-metadata">

**Author:** [@mkilpatr](https://forum.makecode.com/u/mkilpatr)\
**Replies:** 5\
**Last updated:** [April 24, 2020, 10:22am UTC](https://forum.makecode.com/t/complex-custom-field-editors/1787 "2020-04-24T10:22:37Z")

</div>

Is there anyone who can explain how to construct a complex custom field editor? Something like a simple pixel editor which requires mouse clicks etc to create an image within a field within the block. I can really find n…

---

## [PXT Team's experience with +/- mutators in Blockly?](https://forum.makecode.com/t/pxt-teams-experience-with-mutators-in-blockly/1515)

<div class="topic-metadata">

**Author:** [@BeksOmega](https://forum.makecode.com/u/BeksOmega)\
**Replies:** 0\
**Last updated:** [March 27, 2020, 4:32pm UTC](https://forum.makecode.com/t/pxt-teams-experience-with-mutators-in-blockly/1515 "2020-03-27T16:32:29Z")

</div>

Hello, I’m working on an extension for Blockly that adds +/- mutators, similar to the ones MakeCode uses (although they are closer to the OpenRoberta mutators at the moment). I’m trying to figure out what the best desi…

---

## [The PXT module for STM32 board based on freertos](https://forum.makecode.com/t/the-pxt-module-for-stm32-board-based-on-freertos/1323)

<div class="topic-metadata">

**Author:** [@okrutax](https://forum.makecode.com/u/okrutax)\
**Replies:** 0\
**Last updated:** [March 5, 2020, 2:50pm UTC](https://forum.makecode.com/t/the-pxt-module-for-stm32-board-based-on-freertos/1323 "2020-03-05T14:50:35Z")

</div>

Hello, I am trying to understand if I could create a PXT module for STM32 microcontroller. The application of STM32 board based on freertos. I would like to know if there are any examples of using CODAL with freertos t…

---

## [Build a new Makercode editor with pxt-microbit](https://forum.makecode.com/t/build-a-new-makercode-editor-with-pxt-microbit/1301)

<div class="topic-metadata">

**Author:** [@Linhndm](https://forum.makecode.com/u/Linhndm)\
**Replies:** 0\
**Last updated:** [February 29, 2020, 7:00am UTC](https://forum.makecode.com/t/build-a-new-makercode-editor-with-pxt-microbit/1301 "2020-02-29T07:00:48Z")

</div>

Dear Makecode Team, I create an extension board for microbit like this: And I was building a new editor from pxt-microbit in my server. But I can’t modify or add a new package(extension) to my editor(I add a new pac…

---

## [How to own a new MakeCode editor similar to micro:bit or Adafruit?](https://forum.makecode.com/t/how-to-own-a-new-makecode-editor-similar-to-micro-bit-or-adafruit/1288)

<div class="topic-metadata">

**Author:** [@Avishkaar\_Uma](https://forum.makecode.com/u/Avishkaar_Uma)\
**Replies:** 1\
**Last updated:** [February 29, 2020, 2:05am UTC](https://forum.makecode.com/t/how-to-own-a-new-makecode-editor-similar-to-micro-bit-or-adafruit/1288 "2020-02-29T02:05:38Z")

</div>

Dear MakeCode team, I am interested in development for a new MakeCode Editor partnership for our company’s own board(MakerBoard). Kindly response and let me know the further process. Uma, www.avishkaar.cc

---

## [Can MakeCode Block gen C++ code?](https://forum.makecode.com/t/can-makecode-block-gen-c-code/1200)

<div class="topic-metadata">

**Author:** [@HopeCollector](https://forum.makecode.com/u/HopeCollector)\
**Replies:** 1\
**Last updated:** [February 13, 2020, 2:46am UTC](https://forum.makecode.com/t/can-makecode-block-gen-c-code/1200 "2020-02-13T02:46:43Z")

</div>

I’m developing an editor, which will teach my students about how to write simple c++ code. Can MakeCode gen C++ code?

---

## [Hiring MakeCode Programmer](https://forum.makecode.com/t/hiring-makecode-programmer/1182)

<div class="topic-metadata">

**Author:** [@Cinbarker](https://forum.makecode.com/u/Cinbarker)\
**Replies:** 0\
**Last updated:** [February 10, 2020, 1:51pm UTC](https://forum.makecode.com/t/hiring-makecode-programmer/1182 "2020-02-10T13:51:41Z")

</div>

My apologies in advance if this message is misplaced here, however I’m not sure where else to look. My company is interested in using the MakeCode software to develop an environment similar to the ones Adafruit and Micr…

[Previous page](https://forum.makecode.com/c/custom-makecode-editors/8.md?page=2)

[Next page](https://forum.makecode.com/c/custom-makecode-editors/8.md?page=4)
