Description:
As seen on WordPress.com.
SyntaxHighlighter Evolved allows you to easily post syntax-highlighted code to your site without having to escape the code or anything. It uses the SyntaxHighlighter JavaScript package by Alex Gorbatchev to do the highlighting and supports all of the package’s parameters via shortcode attributes.
For a list of supported languages (most widely used languages are supported), see the WordPress.com support document.
Example Code Output:
Note that there are various different color schemes available.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>PHP Code Example</title> </head> <body> <h1>PHP Code Example</h1> <p><?php echo 'Hello World!'; ?></p> <p>This line is highlighted.</p> <div class="foobar"> This is an example of smart tabs. </div> <p><a href="http://wordpress.org/">WordPress</a></p> </body> </html>
If you prefer, you can hide the line numbering and other UI stuff with the “light” mode, for example:
[php light="true"]your code here[/php]
There are many other parameters and defaults you can control via the Settings page or the shortcode parameters. Full details and instructions are located at the bottom of the Settings page.
Download:
- Download from WordPress.org (0 downloads)
GitHub:
This plugin is available on GitHub. Issues, patches, and pull requests are welcome.
Pingback: 4 Best Code/Syntax Highlighting Plugins for WordPress | learningcms
With thanks! Valuable information!
Pingback: Add code to wordpress blog | Alans Wiki
The list of supported languages link ( http://alexgorbatchev.com/wiki/SyntaxHighlighter:Brushes ) is a 404.
Pingback: WordPressでコードを美しく表示する | Dr.山本の疫学研究入門
It don’t work here. Trying to get some php highlighting nothing happends. The
are hidden in the display, so I suppose that something was recognised. But with or without the tags, de display is the same. Tell me where is the error here :
I am very happy about this article. This is my 1st visit in this website. Thanks for sharing this blog. I appreciate your hard working,
Well, I think you understand what I mened.
broken after last WP update.
Also seeing it broken – Code on this developer page is broken just as it is on my site – So at least I know its not me using it wrong. Its been 3 weeks since the first feedback of a problem. It would be nice to see the developer comment and acknowledge that its is being worked on.
Pingback: Wordpress/Linux CLI Notes Engine – troys.io
Fixed here on my site. It’s caused by a quirk in the Gutenberg plugin (which I’ve disabled) and won’t affect WordPress 5.0 which has Gutenberg built in differently.
Details here: https://meta.trac.wordpress.org/ticket/3907#comment:3
it works! thanks a lot!
it works for my site. Thank you.
Hello,
perfect plugins, but after last update there are problem with most special symbols, like ", left bracket and etc.when using C++
You can see the problem here: http://www.bizkit.ru/2018/12/28/11261/
Wordpress: 5.0.2.
SyntaxHighlighter Evolved: 3.5.0
All pages where C++ codes are used show incorrectly. 🙁
with WP 5.0.2 the plugin works only on single pages but not on the main overview
http://www.ostrichkin.org
Ariamontakhab Parsian co., with 10 years experience, as a manufacturer and supplier of ostrich crust skin and finished leather, has a remarkable history in export , and is expanding its business to the worldwide.
Ariamontakhab Parsian works closely with the clients in an effort to understand the needs of our valuable clients and the target audience in different of its company.
Pingback: Building Up Your Blog • Spittoon
Great stuff! I have just added this to my site and is working a treat! Thanks
Pingback: ソースコード埋め込みのテスト – RiceBallFactory
I just tried it, works for non html, but html is deleted by wordpress.
Hi in php snippet “&&” is escape “& a m p; & a m p;” any ideas to fix it ?
Try this – https://github.com/Viper007Bond/syntaxhighlighter/issues/98#issuecomment-471322528
Pingback: How to post source code in a WordPress blog | ID Zero
hi,
may soneone tell me.
how to add fileanme, language like [code language="php" title="download.php"] in wordpress 5.2?
Thanks.
Pingback: Syntax Highlighter Evolved – WP.DesaKami.ID
Great stuff! I have just added this to my site and is working a treat! Thanks
Pingback: Code Syntax Highlighting in WordPress | conceptdm.com
Pingback: Code Syntax Highlighting in WordPress | Carrot Park
Pingback: 워드프레스 구문 강조 플러그인 Syntaxhighlighter 보안 업데이트 - 워드프레스 기본
Are there any Chinese? I don’t use this on the front end
It is helpful. but Can it work with custom html page
Great!! I have just added this to my site and is working a treat! Thanks
Hi Can you guide me how to use this because its not highlighting in my case.
Pingback: Evidenţierea codului în WordPress (SyntaxHighlighter) | Tutoriale WP
I recently use your plugin but I don’t know how to put tab after curly braces in source code. My language is java.
Hey Alex, whenever I am trying to put the code in the wordpress post. It is not getting highlighted. It is however in preview showing Highlighted and beautified but not when I am publishing it. Could you please help?
A great plugin!
Pingback: Code Syntax Highlighting in WordPress – Concept Chaser
Pingback: Code Syntax Highlighting in WordPress | Codexico
Pingback: WordPressでGoのSyntax Highlightを表示させる。|Small Engineering Life
Thanks
A great plugin! I have just added this to my site and is working a treat! Thanks
A nice article. Thanks for sharing.
Pingback: Artículo de prueba – Antonio Leal
How to convert from plugin crayon?
The best syntac plugin… I like this… Thanks
Pingback: Best 4 Plugins To Add Syntax Code in WordPress Website | Andraware
Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible.
Thanks for sharing such a informative blog with us thank you. 4th Hokage Cloak
I installed this plugin, but I do not see any code block available for use when I edit a word press page.
Pingback: Quelltext in WP | matzes[e]ite
Pingback: Jak łatwo wyświetlić fragment kodu pod WordPressem? - w świecie programisty
The most recent item at Real Jackets can be found here. Leather coats for men, women, celebrities, and gamers are available on this website. Please look around our website to find what you’re looking for.