Codebytes Plugin

Summary
Codebytes are embeddable, executable, and editable code blocks in your forum posts/replies

:link: Help Center article / FAQs: Codebytes – Codecademy Help Center

:link: GitHub: GitHub - Codecademy/discourse-codebytes-plugin

:arrow_right: Install:

Features

  • Embed executable code directly in a forum post or reply to get feedback, support, or to share your code snippet with the community
  • No setup required. Write, share and run code directly in forums, right from your browser
  • Read, Write, and Edit code in Python 3, Ruby, JavaScript, C++, C#, Go, and PHP
  • Interact with Codebytes directly in posts; no need to copy and paste code into an IDE

Limitations

  • Not built or optimized for mobile experiences

Examples of usage

Screenshoots

Creating a codebyte

60b687a06f8e5-1622575008.4569



Selecting a language



Editing your Codebyte

14 Likes

i got this

PLUGIN discourse-codebytes-plugin] To prevent errors in tests, add a `pluginId` key to your `modifyClass` call. This will ensure the modification is only applied once.

Hi,

Happy to look into this. Can you please provide more details on how to reproduce this?