# PXT

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

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

**Page:** 2

---

## [Getting error when running svgo](https://forum.makecode.com/t/getting-error-when-running-svgo/21185)

<div class="topic-metadata">

**Author:** [@apurba.koley](https://forum.makecode.com/u/apurba.koley)\
**Replies:** 0\
**Last updated:** [July 12, 2023, 4:12pm UTC](https://forum.makecode.com/t/getting-error-when-running-svgo/21185 "2023-07-12T16:12:35Z")

</div>

Hi Team, I am getting below error i want to upload rp2040 image and want to configure with button.

---

## [Add custom code snippet to monaco editor](https://forum.makecode.com/t/add-custom-code-snippet-to-monaco-editor/20922)

<div class="topic-metadata">

**Author:** [@nevergone](https://forum.makecode.com/u/nevergone)\
**Replies:** 2\
**Last updated:** [June 30, 2023, 4:34pm UTC](https://forum.makecode.com/t/add-custom-code-snippet-to-monaco-editor/20922 "2023-06-30T16:34:13Z")

</div>

How can I add code snippets like this to my own micro:bit makecode package?

---

## [SAMD21 and SPI](https://forum.makecode.com/t/samd21-and-spi/19422)

<div class="topic-metadata">

**Author:** [@dotnetmaster](https://forum.makecode.com/u/dotnetmaster)\
**Replies:** 0\
**Last updated:** [April 25, 2023, 4:33pm UTC](https://forum.makecode.com/t/samd21-and-spi/19422 "2023-04-25T16:33:45Z")

</div>

Hi everyone, I’m working on a custom board using SAMD21 as the microcontroller. Unfortunately, I have not found any sample library using SPI for a SAMD21-based board; many examples for micro: bit is incompatible with SA…

---

## [Suggestions on which webhost to use to host the editor](https://forum.makecode.com/t/suggestions-on-which-webhost-to-use-to-host-the-editor/2127)

<div class="topic-metadata">

**Author:** [@suraj022](https://forum.makecode.com/u/suraj022)\
**Replies:** 5\
**Last updated:** [April 14, 2023, 9:09pm UTC](https://forum.makecode.com/t/suggestions-on-which-webhost-to-use-to-host-the-editor/2127 "2023-04-14T21:09:09Z")

</div>

Hi. I’m mostly done customizing the editor according to my needs and I wish to host the editor on the internet. Which web host provider does the developers suggest? Following are some of the hosts I’ve tried. Github …

---

## [How to specify multiple fieldEditor block](https://forum.makecode.com/t/how-to-specify-multiple-fieldeditor-block/18846)

<div class="topic-metadata">

**Author:** [@THEb0nny](https://forum.makecode.com/u/THEb0nny)\
**Replies:** 0\
**Last updated:** [March 28, 2023, 9:58pm UTC](https://forum.makecode.com/t/how-to-specify-multiple-fieldeditor-block/18846 "2023-03-28T21:58:25Z")

</div>

How to specify multiple fieldEditor block and share information between them?

---

## [Makecode self-hosted version with nginx](https://forum.makecode.com/t/makecode-self-hosted-version-with-nginx/18665)

<div class="topic-metadata">

**Author:** [@nevergone](https://forum.makecode.com/u/nevergone)\
**Replies:** 0\
**Last updated:** [March 21, 2023, 5:06pm UTC](https://forum.makecode.com/t/makecode-self-hosted-version-with-nginx/18665 "2023-03-21T17:06:36Z")

</div>

I would like a self-hosted, Docker-based version from pxt-microbit. Wrote a default nginx configuration file: server { listen 80; listen \[::\]:80; server\_name localhost; root /usr/share/nginx/h…

---

## [Makecode Maker - RPI PICO - some questions](https://forum.makecode.com/t/makecode-maker-rpi-pico-some-questions/18026)

<div class="topic-metadata">

**Author:** [@lafar65021](https://forum.makecode.com/u/lafar65021)\
**Replies:** 0\
**Last updated:** [February 16, 2023, 7:27pm UTC](https://forum.makecode.com/t/makecode-maker-rpi-pico-some-questions/18026 "2023-02-16T19:27:54Z")

</div>

Hi, i have several questions related to raspberry pi PICO and Maker. Im just experimenting with the Pico board and would like to get somewhat better idea of what’s possible with Makecode I see the Maker forum category …

---

## [I suggest replacing the division symbol with / in blocks](https://forum.makecode.com/t/i-suggest-replacing-the-division-symbol-with-in-blocks/11126)

<div class="topic-metadata">

**Author:** [@THEb0nny](https://forum.makecode.com/u/THEb0nny)\
**Replies:** 6\
**Last updated:** [December 20, 2022, 6:12pm UTC](https://forum.makecode.com/t/i-suggest-replacing-the-division-symbol-with-in-blocks/11126 "2022-12-20T18:12:02Z")

</div>

Hi devs, I suggest changing the division symbol to a forward slash /. I noticed that children, when looking from the blackboard, confuse it with the multiplication sign.

---

## [Changing download file type from uf2 to Python](https://forum.makecode.com/t/changing-download-file-type-from-uf2-to-python/16017)

<div class="topic-metadata">

**Author:** [@ErinMutchler](https://forum.makecode.com/u/ErinMutchler)\
**Replies:** 5\
**Last updated:** [November 3, 2022, 6:24pm UTC](https://forum.makecode.com/t/changing-download-file-type-from-uf2-to-python/16017 "2022-11-03T18:24:09Z")

</div>

Is there any way to modify a PXT target so you can download your code as a .py file rather than compiling it to uf2? Since PXT is built on blockly, I figured this should be possible but am a little uncertain where to sta…

---

## [Embeded tutorials can edit blocks](https://forum.makecode.com/t/embeded-tutorials-can-edit-blocks/15389)

<div class="topic-metadata">

**Author:** [@luizbr](https://forum.makecode.com/u/luizbr)\
**Replies:** 0\
**Last updated:** [September 16, 2022, 10:13pm UTC](https://forum.makecode.com/t/embeded-tutorials-can-edit-blocks/15389 "2022-09-16T22:13:19Z")

</div>

Hello, I’m developing an activity page where I use a makecode tutorial link and I need it to be editable so that the student doesn’t leave this page to do the code. Is there any way to do this? can someone help me with s…

---

## [Developing for Adafruit boards in Pure Static TypeScript?](https://forum.makecode.com/t/developing-for-adafruit-boards-in-pure-static-typescript/13012)

<div class="topic-metadata">

**Author:** [@inventonater](https://forum.makecode.com/u/inventonater)\
**Replies:** 1\
**Last updated:** [May 2, 2022, 4:50pm UTC](https://forum.makecode.com/t/developing-for-adafruit-boards-in-pure-static-typescript/13012 "2022-05-02T16:50:42Z")

</div>

Hello! I was directed here from the Adafruit forums by John Park so I apologize if I’m naive about anything :slight\_smile: but excited to learn and connect with you all! I’m trying to understand a little better the o…

---

## [Read/Write from sim to an external process in real time](https://forum.makecode.com/t/read-write-from-sim-to-an-external-process-in-real-time/13061)

<div class="topic-metadata">

**Author:** [@toysonlocation](https://forum.makecode.com/u/toysonlocation)\
**Replies:** 0\
**Last updated:** [April 11, 2022, 5:19pm UTC](https://forum.makecode.com/t/read-write-from-sim-to-an-external-process-in-real-time/13061 "2022-04-11T17:19:41Z")

</div>

Hi forum, I’m looking to create a simulated environment for the microbit sim. It would be a simulated environment (2D) with simulated hardware (a robotic car with servos and sensors) controlled by the microbit sim in ma…

---

## [Typescript "Call by Reference"](https://forum.makecode.com/t/typescript-call-by-reference/12745)

<div class="topic-metadata">

**Author:** [@tschanni](https://forum.makecode.com/u/tschanni)\
**Replies:** 0\
**Last updated:** [March 17, 2022, 4:50pm UTC](https://forum.makecode.com/t/typescript-call-by-reference/12745 "2022-03-17T16:50:57Z")

</div>

Hi there, Im new to this whole MakeCode Enviroment and im trying to build my own block which, for example, should just measure the time a process needs. So I did a Bracket block and declared it like the following: /\*\* …

---

## [Promise.delay is not a function error](https://forum.makecode.com/t/promise-delay-is-not-a-function-error/12731)

<div class="topic-metadata">

**Author:** [@JoeeSM](https://forum.makecode.com/u/JoeeSM)\
**Replies:** 2\
**Last updated:** [March 17, 2022, 4:48pm UTC](https://forum.makecode.com/t/promise-delay-is-not-a-function-error/12731 "2022-03-17T16:48:52Z")

</div>

Hi, I am new to the MakeCode platform and I have started to create my own local simulator. However, the ‘Promise.delay’ function is throwing an error when an API tries to use it. I am not to sure what is causing this, as…

---

## [https://makecode.microbit.org/\_Uab1god8cMst](https://forum.makecode.com/t/https-makecode-microbit-org-uab1god8cmst/12334)

<div class="topic-metadata">

**Author:** [@Chanwillson](https://forum.makecode.com/u/Chanwillson)\
**Replies:** 0\
**Last updated:** [February 22, 2022, 5:41pm UTC](https://forum.makecode.com/t/https-makecode-microbit-org-uab1god8cmst/12334 "2022-02-22T17:41:21Z")

</div>

uuluyfyfyrjgfdrdrthrcgfcfgc

---

## [C++ extensions issues](https://forum.makecode.com/t/c-extensions-issues/6836)

<div class="topic-metadata">

**Author:** [@JeCa](https://forum.makecode.com/u/JeCa)\
**Replies:** 5\
**Last updated:** [February 21, 2022, 11:54pm UTC](https://forum.makecode.com/t/c-extensions-issues/6836 "2022-02-21T23:54:13Z")

</div>

I am working on a C++ extension for a new hardware+editor, but need support. I get it to compile, but it fails with “Cannot read property \<\> of undefined” in the simulator/browser. I must be doing something wrong with na…

---

## [Suggestion to change color of function parameters](https://forum.makecode.com/t/suggestion-to-change-color-of-function-parameters/11118)

<div class="topic-metadata">

**Author:** [@THEb0nny](https://forum.makecode.com/u/THEb0nny)\
**Replies:** 4\
**Last updated:** [February 7, 2022, 5:34pm UTC](https://forum.makecode.com/t/suggestion-to-change-color-of-function-parameters/11118 "2022-02-07T17:34:00Z")

</div>

I suggest changing the color of the block parameters so that they are not the same as those of the variables. I noticed that this creates problems for the students when they watch what the teacher has done and show on t…

---

## [Python serialization - inlining of functions not very readable?](https://forum.makecode.com/t/python-serialization-inlining-of-functions-not-very-readable/9084)

<div class="topic-metadata">

**Author:** [@jfo8000](https://forum.makecode.com/u/jfo8000)\
**Replies:** 2\
**Last updated:** [January 31, 2022, 6:00pm UTC](https://forum.makecode.com/t/python-serialization-inlining-of-functions-not-very-readable/9084 "2022-01-31T18:00:40Z")

</div>

I am pretty excited because I just turned on python serialization for the BuildBee MakeCode pxt So far it seems to be working well. It gets a little weird for my blocks that take a function though Any sugges…

---

## [Been using the Buildbee 3D modeling tool --- extending it?](https://forum.makecode.com/t/been-using-the-buildbee-3d-modeling-tool-extending-it/11581)

<div class="topic-metadata">

**Author:** [@willadams](https://forum.makecode.com/u/willadams)\
**Replies:** 5\
**Last updated:** [January 24, 2022, 3:54pm UTC](https://forum.makecode.com/t/been-using-the-buildbee-3d-modeling-tool-extending-it/11581 "2022-01-24T15:54:16Z")

</div>

I’ve begun using @jfo8000 's nifty: and had some questions (which I’ve posted to a couple of places and mailed in to their site and started a ticket on) and was hoping to pick up some information and maybe to pitch in…

---

## [how to generator C# code](https://forum.makecode.com/t/how-to-generator-c-code/11681)

<div class="topic-metadata">

**Author:** [@onduty](https://forum.makecode.com/u/onduty)\
**Replies:** 0\
**Last updated:** [January 11, 2022, 4:55pm UTC](https://forum.makecode.com/t/how-to-generator-c-code/11681 "2022-01-11T16:55:59Z")

</div>

Are there any extension can generate C# code?

---

## [Reporter blocks and Statement blocks](https://forum.makecode.com/t/reporter-blocks-and-statement-blocks/11133)

<div class="topic-metadata">

**Author:** [@THEb0nny](https://forum.makecode.com/u/THEb0nny)\
**Replies:** 10\
**Last updated:** [December 1, 2021, 9:39pm UTC](https://forum.makecode.com/t/reporter-blocks-and-statement-blocks/11133 "2021-12-01T21:39:33Z")

</div>

Privet, ya khochu poprobovat’ sozdat’ blok operatora ?: YA smotryu dokumentatsiyu https://makecode.com/defining-blocks no ya ne ponimayu kak rabotayet primer koda. YA skopiroval i vstavil v custom.ts: /\*\* \* Custom blocks…

---

## [I suggest making several files for blocks](https://forum.makecode.com/t/i-suggest-making-several-files-for-blocks/9601)

<div class="topic-metadata">

**Author:** [@THEb0nny](https://forum.makecode.com/u/THEb0nny)\
**Replies:** 1\
**Last updated:** [November 29, 2021, 5:11pm UTC](https://forum.makecode.com/t/i-suggest-making-several-files-for-blocks/9601 "2021-11-29T17:11:27Z")

</div>

I suggest making several files for blocks so that there are not many blocks on one screen. Now you can add several ts files, but you cannot add blocks.

---

## [Suggestion to create constants in blocks](https://forum.makecode.com/t/suggestion-to-create-constants-in-blocks/11125)

<div class="topic-metadata">

**Author:** [@THEb0nny](https://forum.makecode.com/u/THEb0nny)\
**Replies:** 0\
**Last updated:** [November 29, 2021, 5:11pm UTC](https://forum.makecode.com/t/suggestion-to-create-constants-in-blocks/11125 "2021-11-29T17:11:14Z")

</div>

I propose to create constants in the visual environment of blocks so that constants in the code do not change to variables. Create a separate category for them in the left panel, set a separate block color for them.

---

## [Suggest to hide text from the block category pane](https://forum.makecode.com/t/suggest-to-hide-text-from-the-block-category-pane/11119)

<div class="topic-metadata">

**Author:** [@THEb0nny](https://forum.makecode.com/u/THEb0nny)\
**Replies:** 0\
**Last updated:** [November 29, 2021, 5:01pm UTC](https://forum.makecode.com/t/suggest-to-hide-text-from-the-block-category-pane/11119 "2021-11-29T17:01:37Z")

</div>

Hi, I suggest that by some button press (for example, as with a button to hide the simulator), the text can be hidden so that the panel takes up less space and a larger area for working with blocks / code. I checked, no…

---

## [Blocks for breaking and continuing](https://forum.makecode.com/t/blocks-for-breaking-and-continuing/5316)

<div class="topic-metadata">

**Author:** [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Replies:** 7\
**Last updated:** [November 29, 2021, 5:00pm UTC](https://forum.makecode.com/t/blocks-for-breaking-and-continuing/5316 "2021-11-29T17:00:22Z")

</div>

As the title says, a block for the statements break and continue, that would go under Loops and be a light green block like the while and for blocks?

---

## [Functions with a return value in Blocks](https://forum.makecode.com/t/functions-with-a-return-value-in-blocks/534)

<div class="topic-metadata">

**Author:** [@kjw](https://forum.makecode.com/u/kjw)\
**Replies:** 8\
**Last updated:** [October 28, 2021, 5:14pm UTC](https://forum.makecode.com/t/functions-with-a-return-value-in-blocks/534 "2021-10-28T17:14:56Z")

</div>

What’s the story with functions and return values? It looks like these cannot be done in pure Blocks? I know Scratch took this approach for some reason but I’d quite like a return value at the moment. I can hack it with …

---

## [Creating an multi handler function in an extension](https://forum.makecode.com/t/creating-an-multi-handler-function-in-an-extension/10069)

<div class="topic-metadata">

**Author:** [@Ronzi](https://forum.makecode.com/u/Ronzi)\
**Replies:** 0\
**Last updated:** [September 16, 2021, 10:32pm UTC](https://forum.makecode.com/t/creating-an-multi-handler-function-in-an-extension/10069 "2021-09-16T22:32:27Z")

</div>

Hello everyone, I am trying to create a new block using an extension. I want the block to handle more the one handler, an example for it can be the if+else block in the logic section. \*At first I need it to handle only …

---

## [What's the best way to create a pxt target](https://forum.makecode.com/t/whats-the-best-way-to-create-a-pxt-target/7983)

<div class="topic-metadata">

**Author:** [@FBplus](https://forum.makecode.com/u/FBplus)\
**Replies:** 1\
**Last updated:** [July 29, 2021, 9:55pm UTC](https://forum.makecode.com/t/whats-the-best-way-to-create-a-pxt-target/7983 "2021-07-29T21:55:40Z")

</div>

I found the docs here: https://makecode.com/target-creation,but it’s not very helpful to be honest. The pxt-sample is out dated and I am facing many errors when I lunch that project :disappointed: I wonder if there is …

---

## [Versioning / Serialization of Blocks - Where does it live?](https://forum.makecode.com/t/versioning-serialization-of-blocks-where-does-it-live/8259)

<div class="topic-metadata">

**Author:** [@BeksOmega](https://forum.makecode.com/u/BeksOmega)\
**Replies:** 1\
**Last updated:** [May 26, 2021, 8:37am UTC](https://forum.makecode.com/t/versioning-serialization-of-blocks-where-does-it-live/8259 "2021-05-26T08:37:31Z")

</div>

Hello! I’m doing some research into how different forks of Blockly handle custom serialization and versioning of blocks. I’ve already checked out the xml.js file in pxt-blockly, but I was wondering if there was anywhere…

---

## [Dynamic define blocks](https://forum.makecode.com/t/dynamic-define-blocks/8218)

<div class="topic-metadata">

**Author:** [@FBplus](https://forum.makecode.com/u/FBplus)\
**Replies:** 4\
**Last updated:** [May 21, 2021, 4:39pm UTC](https://forum.makecode.com/t/dynamic-define-blocks/8218 "2021-05-21T16:39:35Z")

</div>

Hi,there! I am new to pxt framework and I’ve found that the document for this framework is a little rare,I must dig into the source code to achieve what I want. I wonder if there is a way to define blocks dynamiclly?Fo…

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

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