# Extensions in custom Editor

**URL:** https://forum.makecode.com/t/extensions-in-custom-editor/787
**Category:** PXT
**Created:** [November 16, 2019, 7:24am UTC](https://forum.makecode.com/t/extensions-in-custom-editor/787 "2019-11-16T07:24:34Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![CarlTS](https://avatars.discourse-cdn.com/v4/letter/c/47e85d/32.png) [@CarlTS](https://forum.makecode.com/u/CarlTS)
#### Post date: [November 16, 2019, 7:24am UTC](https://forum.makecode.com/t/extensions-in-custom-editor/787/1 "2019-11-16T07:24:34Z")

</div>

I am trying to figure out if I can use existing extenstions in a custom makecode tutorial. Specifically the Neopixel extension with Microbit.

Is there a way to use extensions in the tutorials space

I have built my custom tutorial with  
[https://makecode.com/writing-docs/tutorials](https://makecode.com/writing-docs/tutorials)

The below does not work as the neopixel extension is not enabled in the tutorial.  
`let strip2 = neopixel.create(DigitalPin.P0, 24, NeoPixelMode.RGB)`

---

<div class="post-metadata">

### Author: ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)
#### Post date: [November 16, 2019, 9:18pm UTC](https://forum.makecode.com/t/extensions-in-custom-editor/787/2 "2019-11-16T21:18:26Z")

</div>

For builtin extensions: at the bottom of [this file](https://raw.githubusercontent.com/microsoft/pxt-arcade/master/docs/tutorials/simple-extensions.md), you can see the packages snippet that indicates the extension the tutorial needs to load. I would expect you just need neopixel there instead of corgio, but I’d have to check. (If you need multiple extensions, just add another line)

For extensions on github: This tutorial I wrote uses an extension that handles almost all of the game logic, so there are just a few blocks the play can customize it with. To get an extension in your project, you’ll want to add a snippet with syntax like the bottom [here](https://raw.githubusercontent.com/microsoft/pxt-arcade/master/docs/tutorials/football.md).

Ill see about updating the docs later to be clear on gow to do this~

---

<div class="post-metadata">

### Author: ![CarlTS](https://avatars.discourse-cdn.com/v4/letter/c/47e85d/32.png) [@CarlTS](https://forum.makecode.com/u/CarlTS)
#### Post date: [November 18, 2019, 11:05pm UTC](https://forum.makecode.com/t/extensions-in-custom-editor/787/3 "2019-11-18T23:05:26Z")

</div>

Cheers @jwunderl,

I tried the following and unfortunately came up with no extension being loaded.  
`package pxt-neopixel `  
And  
`package neopixel `  
And  
`package pxt-neopixel=github:microsoft/pxt-neopixel#v0.6.12 `

---

<div class="post-metadata">

### Author: ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)
#### Post date: [November 18, 2019, 11:33pm UTC](https://forum.makecode.com/t/extensions-in-custom-editor/787/4 "2019-11-18T23:33:27Z")

</div>

Ahh, forgot that neopixel is in a separate repo; the last one should be working I believe? E.g. example below shows up as [https://makecode.microbit.org/beta#tutorial:22058-41215-69115-76860](https://makecode.microbit.org/beta#tutorial:22058-41215-69115-76860)

````markdown
# Test

## Step 1

Instructions for step 1 of activity 1 here...

```blocks
let strip2 = neopixel.create(DigitalPin.P0, 24, NeoPixelMode.RGB)
```

## Step 2

Instructions for step 2 of activity 1 here...

```package
neopixel=github:microsoft/pxt-neopixel#v0.6.12
```

````

---

<div class="post-metadata">

### Author: ![CarlTS](https://avatars.discourse-cdn.com/v4/letter/c/47e85d/32.png) [@CarlTS](https://forum.makecode.com/u/CarlTS)
#### Post date: [December 1, 2019, 10:50pm UTC](https://forum.makecode.com/t/extensions-in-custom-editor/787/5 "2019-12-01T22:50:12Z")

</div>

Cheers for that, I must have had a typo in my test.  
That solved the issue I was having 🙂
