How to use Code Snippets
Code Snippets lets members share and discover code with the community, with syntax highlighting and a one-click copy button.
Enable it
Owners turn this on from Admin -> Module Store -> find Code Snippets -> toggle on.
Where to find it
Once enabled, members open it at /snippets from the community navigation.
What you can do
- Click New Snippet to share code: add a title, pick a Language, paste your code, write a description, and add comma-separated tags.
- Search the library with the search box to find snippets.
- Open any snippet and click Copy to copy its code.
- Click Fork to make your own copy of someone else's snippet (when forking is enabled).
Related
- The Module Store (Admin -> Module Store)