June 8th, 2026

Add-ons

Extension

Code Snippets

Code Snippets 5.1

  • Security: Improved code snippet database handling with prepared queries, sanitized values, and stricter user scoping.

  • Security: Strengthened AJAX input and output handling to improve protection against malformed or unsafe requests.

  • Fixed: Corrected formatting of default snippet code.

  • Fixed: Ensured default snippet descriptions and data are properly migrated during upgrades.

  • Added: Code folding UI and fold keymap support.

  • Added: Autocompletion and automatic bracket closing in the code editor.

  • Added: Natural Tab indentation support in the code editor.

  • Added: PHP pre-save syntax validation to help catch common syntax errors before saving snippets.

  • Added: Added a new clients column to the Code Snippets database table to support client-based snippet organization.

  • Updated: Reworked the snippet editor layout with a cleaner, more modern interface.

  • Updated: Moved snippet settings above the code editor for easier access while editing snippets.

  • Updated: Compacted snippet action buttons to reduce visual clutter in the editor area.

  • Updated: Replaced the snippet type radio buttons with a pill-style selector for a clearer editing experience.

  • Updated: Improved the saved snippets table by combining snippet titles and descriptions into a single, more readable column.

  • Updated: Replaced plain text snippet type indicators with colored labels for better visibility in the saved snippets table.

  • Updated: Refined multiple text strings for clearer and more consistent wording.

  • Updated: Improved snippet options handling, selection normalization, and snippet type validation for better reliability.

  • Updated: Improved snippet run UI rendering for a cleaner and more consistent user experience.

  • Updated: Replaced the legacy CodeMirror 5 editor with a new CodeMirror 6 bundle.

  • Updated: Improved internal utility handling with a safer rand_string method and a more user-friendly time_elapsed_string helper.

  • Dev: Refactored core database methods, including install, update_codesnippet, get_codesnippet_by, and remove_codesnippet, for safer and more consistent data handling.

  • Dev: Refactored the extension structure with clearer return semantics, improved docblocks, singleton patterns, and updated build files for better maintainability.