Snapblocks have been added to the forum

None of the library categories are in snapblocks, and never will be. I've thought about this for a while, and I have come to that conclusion.

The reason why, is because if I add the library categories, then I'll have to add the blocks in the libraries, and I'm not doing that for multiple reasons.

  1. There are so many libraries in snap, and some (ahem, scisnap) are extremely large, making it even more of a hassle to just go through one by one and add the blocks (it took me ages to add all the snap primitives that weren't already in scratch, and creating a script would be faster, but I would still have to go one by one to make sure they're correct).
  2. Snap libraries change all the time. Many libraries get updated with new, edited, or removed blocks, category colors can change, libraries can be added or removed, all in major or minor releases. Since they change all the time, it would genuinely be too much work to try and keep up to date with snap, and even then, I don't have control over when the snapblocks plugin on the forum gets updated (I've made a small change to it, and it's not on the forum yet, although I haven't said anything about it until now, so I never expected the snap devs to know).

Basically, it's just way to much work to add all the blocks, as well as keeping up to date with snap. Scratch is different. The reason the scratch extensions are in scratchblocks (and snapblocks), is because they do not change as often as snap, in fact, most scratch extensions have not changed since scratch 3 was released, and only 1 has been added since then (scratch lab doesn't count). It's not often enough that it is feasible to add the extension blocks (plus they have unique images).

If you want to get category colors, you can do either of these methods.

  1. Using javascript
    1. Run this script
    return SpriteMorph.prototype.customCategories.get(block.expression.category).toRGBstring();
    
  2. Using the "Make a category" color picker
    1. Open the "Make a category" dialog
    2. Click on the color picker, and select the block you want to get the color of.
    3. Right click the color picker to open the rgb input dialog
    4. Copy down the values, and put them into a string like this rgb(0, 116, 143).

There are more methods, but these two are the easiest (of course you can also just use my snap to snapblocks converter, which already handles custom category colors (if you enable js)).