Descripción
Now with support for the new block editor in WordPress 5.0!
SyntaxHighlighter Evolved allows you to easily post syntax-highlighted code to your site without losing its formatting or making any manual changes. It uses the SyntaxHighlighter JavaScript package by Alex Gorbatchev.
For a live demo, see this plugin’s homepage.
For a list of supported languages (most widely used languages are supported), see the WordPress.com support document.
Development of this plugin is on GitHub.
Translation of the plugin into different languages is on the translation page.
Bloques
Este plugin proporciona 1 bloque.
- Code
Preguntas frecuentes
-
The code is just being displayed raw. It isn’t being converted into a code box or anything. What’s wrong?
-
Make sure your theme’s
footer.phpfile has<?php wp_footer(); ?>somewhere inside of it, otherwise the plugin won’t be able to do it’s thing. -
Highlighting doesn’t work and my browser hangs, why?
-
Try excluding this plugin’s Javascript from any performance optimizations your site may be doing that involve minifying or concatenating JS.
Reseñas
Colaboradores y desarrolladores
«SyntaxHighlighter Evolved» es un software de código abierto. Las siguientes personas han colaborado con este plugin.
Colaboradores«SyntaxHighlighter Evolved» ha sido traducido a 17 idiomas locales. Gracias a los traductores por sus contribuciones.
Traduce «SyntaxHighlighter Evolved» a tu idioma.
¿Interesado en el desarrollo?
Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.
Registro de cambios
Version 3.7.2
- Add more explicit license information #266
- Fix escaping when language is unknown #283
Version 3.7.1
- Ensure box sizing accounts for added padding #278
Version 3.7.0
- Update translations with translator comment to a single line. #245
- Fix nested shortcode bugs. #261
- PHP 8 Compat: declare class properties. #265
- Migrate project to wp-scripts and fix lodash deps. #269
Version 3.6.2
- New: Add syntax highlight for Swift. #232
Version 3.6.1
- New: Set code block language when pasting into editor. #215
- New: Add syntax highlight for Haskell. #210
- New: Display the list of available brushes. #221
- Fix: Line alignment for bootstrap themes. #222
- Fix: Add space around code. #223
- Fix: XML brush – use the last occurrence of the tag. #225
Version 3.6.0
- New: Add «`language shortcut. #180
- New: Add block alignment support. #179
- New: Add language selector to block toolbar. #172
- Fix: transform issue. #201
- Fix: toolbar code selection for latest Gutenberg versions #200
- Fix: Content attribute selector. #178
- Fix: Escaping for shortcodes and URLs. #177
- Fix: Escaping issues with HTML entities. #160
- Fix: MatLab brush key in brush map. #188
- Fix: Remove
wrapper. #163 - Fix: escaping for non-admin authored posts. #187
- Tweak: Bump «tested up to» version. #183
- Tweak: Refactor block JS code. #171
- Tweak: Update plugin tags. #181
- Tweak: Use tab size from plugin settings in block editor. #174
Version 3.5.5
- Allow setting text to include br and code tags. #144
- Add Arduino Brush. #136
- Fix tags issue while alternating visual and text mode in the classic editor. #139


