Petra
AI assistant for GrootMade
Hi! I'm Petra 👋 Ask me to help you find the perfect WP plugin, theme, or template kit.
Add syntax highlighting to code blocks with server-side rendering.
This plugin enhances the standard code block in content management systems by adding syntax highlighting that is generated on the server. It is designed for developers, technical writers, and site owners who publish code snippets and want better performance and reliability. The plugin automatically applies to existing code blocks on a site.
Server-side rendering: Syntax highlighting is applied during page generation, eliminating the need for frontend JavaScript libraries. This prevents flashes of unstyled code. Performance improvement: By removing client-side script dependencies, page loading times are reduced, contributing to better Core Web Vitals scores. AMP compatibility: The highlighted code works correctly on AMP pages and for users with JavaScript disabled, as no client-side processing is required. Language auto-detection and control: The plugin automatically detects the programming language in a code block. Users can manually select a different language in the block settings if needed. Line highlighting and numbering: Specific lines within a code block can be marked for emphasis. An option to display non-selectable line numbers is also provided.