The nexter/create-snippet ability creates a new code snippet in Nexter Extension. It supports PHP, CSS, JavaScript, and HTML snippet types with configurable insertion locations, execution scopes, scheduling dates, and display conditions. New snippets are created as inactive by default to prevent accidental execution. Use nexter/toggle-snippet with status=1 to activate after creation.
Key Takeaways
Required Setup
The Code Snippets feature must be enabled in Nexter Extension. Use nexter/list-extensions to confirm it is active, or nexter/toggle-extension to enable it. After creating a snippet, use nexter/toggle-snippet with status=1 to activate it.
Parameters
Only name and type are required. All other parameters are optional and can be updated later with nexter/update-snippet.
What It Returns
The ability returns a confirmation object on success.











